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

JWT

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 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

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)