~/talk

Tips and Tricks for JSON Web Tokens (JWTs)

Talkat PyCon US 2025 · 2025-05-16..05-18· [security, python]
links:none on file
slides:none on file

Claims that validation needs no state because application servers use public keys and not secrets, concrete example code on GitHub showing Flask decorators composed with the PI JWT library, signature example using Ed DSA, and a deployed pattern that moves verification into enginex middleware so Python services only parse claims. Recommends an access/refresh flow with very short access tokens (about 30 seconds to a minute) and warns about trusting header alg or JKU fields.

AI-written summary · about

  1. 0:00JWT introduction and benefits
  2. 2:10Separate auth from validation
  3. 4:37JWT structure and fields
  4. 7:06Python JWT validation
  5. 11:16Proxy JWT claims use cases
  6. 13:44JWT security caveats
  7. 15:28JWT attacks and defenses
  8. 18:59JWT revocation and refresh
  9. 22:33JWT middleware validation
  10. 25:25Summary: distributed trust
  11. 26:46Q&A
~/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.