~/talk

Stateless Auth w/ JSON Web Tokens

Talkat Southeast Ruby 2017 · 2017-10-05..10-06· [security, ruby]
slides:none on file

Compares Rails sessions to JWTs and shows concrete tradeoffs: JWTs are signed not encrypted and carry claims like exp, iat, nbf and sub so clients can read them; common revocation patterns include embedding a password-hash fragment, storing a user-level min_iat timestamp, or issuing a jti and checking it server-side; warns that pure stateless JWTs can’t revoke individual sessions without extra storage; mentions libraries (knock, devise-jwt, rollout) and recommends implementing revocation.

AI-written summary · about

  1. 0:00Introduction
  2. 0:32API Authentication
  3. 1:23Tokenbased Authentication
  4. 2:05Problems with Tokenbased Authentication
  5. 4:43Authentication Tokens in Plain Text
  6. 6:37The Problem
  7. 7:43Encryption
  8. 9:00JSON Web Tokens
  9. 10:09Data
  10. 10:40Header
  11. 11:20Body
  12. 11:54Signature
  13. 12:59Claims
  14. 14:52Rails vs JSON Web Tokens
  15. 15:39JavaScript Object Signing
  16. 16:00Why Stateless Authentication
  17. 18:06Force Log Out
  18. 19:25Password Hash
  19. 19:37Session
  20. 20:12Password
  21. 20:52Minimum Issue
  22. 21:11JSON Token Identifier
  23. 21:38Disadvantages
  24. 22:23JSON Web Token Advantages
  25. 23:11JSON Web Token Permissions
  26. 23:56Selfcontained expiration handling
  27. 24:49Scalability
  28. 25:33Information Sharing
  29. 26:22Open Standard
  30. 27:19Language Support
  31. 27:46Rails implementations
  32. 29:26Benefits of JSON Web Tokens
  33. 30:25Revocation Technique
  34. 30:54Why JSON Web Tokens
  35. 33:01Thomas Whittington
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.