~/talk

Knock knock, who's there? Authenticating your single page apps using JSON Web Tokens

Talkat GrillJS 2019 · 2019-09-07..09-08· [security, web-platform]
slides:none on file

Explains JWT structure as header.payload.signature (base64 JSON header, payload claims, signature) and shows a demo SPA that uses an ID token to display user info and an access token to successfully fetch protected cat pictures. Recommends OpenID Connect over raw OAuth2 for identity, avoids the implicit flow and uses authorization code + PKCE, stores tokens in memory with silent renewal via an HTTP-only cookie iframe, warns about token invalidation requiring blacklists, no sensitive data in JWTs, and suggests short access lifetimes (example: ~10 minutes) and refresh token rotation.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:16Traditional web authentication
  3. 7:14What is a token
  4. 14:40JSON Web Token breakdown
  5. 19:53Live demo of token authentication
  6. 24:55Token-based auth for SPAs
  7. 29:11OAuth 2.0 and OpenID Connect
  8. 31:23Access tokens vs ID tokens
  9. 32:26Refresh tokens in SPAs
  10. 34:11Solving CORS and state issues
  11. 35:37Summary and best practices
  12. 36:22Q&A session
~/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.