~/talk

Let's talk about JWT

Talkat PyCon US 2022 · 2022-04-27..05-03· [security, web-platform]
slides:none on file

Explains the actual JWT bits: RFC 7519 and JOSE, three-part string with base64url header payload signature, common algorithms like HS256 secret reuse versus asymmetric keys (public/private, SSH/PEM), real code using PyJWT showing jwt.decode and get_unverified_header, where ID tokens and access tokens appear in OAuth flows, tools like jwt.io debugger and a published handbook, and concrete safety outcomes — don’t store tokens in localStorage, don’t verify secrets in the frontend, and never put sensitive data in the payload.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Understanding JWT
  3. 2:36JWT structure
  4. 4:06JWT header and payload
  5. 5:58Claims types and security
  6. 7:56The signature part
  7. 8:39Signing algorithms
  8. 10:08Sharing keys
  9. 11:13Python implementation
  10. 12:49Verifying without secret
  11. 14:23Handling exceptions
  12. 15:38Asymmetric verification
  13. 17:20JWT use cases
  14. 19:21Security best practices
  15. 21:02Tools and conclusion
~/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.