~/talk

Applying Proper Security Practices With JWT

Talkat GopherCon Europe 2020 · 2020-06-15..06-18· [security]
slides:none on file

Use JWTs as short-lived access tokens 15-minute access token plus longer refresh tokens 7-day refresh token. Generate a per-device UUID, include userID and UUID as token claims, and store that metadata in Redis (metadata (userID + uuid) in Redis) instead of a relational DB. Verify incoming access tokens by validating signature then checking the UUID exists in Redis; revoke by deleting the Redis entry so expired-but-present JWTs become useless (per-device revocation). Secrets come from env vars; code examples shown in Go with refresh flow that returns new token pairs.

AI-written summary · about

  1. 0:00Start
  2. 1:41Victor Steven
  3. 2:42Some Questions about JWT
  4. 3:40Bad Practices
  5. 7:26Applying JWT
  6. 20:13The Refresh Token Flow
~/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.