Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JWT

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

 JWT

JSON Web Tokens slides based on my blog post, Auth with JSON Web Tokens http://jpadilla.com/post/73791304724/auth-with-json-web-tokens

Avatar for José Padilla

José Padilla

February 20, 2014
Tweet

More Decks by José Padilla

Other Decks in Programming

Transcript

  1. JWT

  2. JWE

  3. JWK

  4. JWS

  5. JWA

  6. import jwt ! SECRET_KEY = "my-secret-key" payload = {"user_id": 1}

    ! jwt_token = jwt.encode(payload, SECRET_KEY) ! payload = jwt.decode(jwt_token, SECRET_KEY)