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

JWT

 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

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)