~/talk

Authenticating your single page apps using JSON Web Tokens

Talkat apidays Singapore 2019 · 2019-04-23..04-24· [javascript, security]
slides:none on file

Explains that JSON Web Tokens are three base64 parts—header, payload (claims) and signature—and that APIs can verify expiry and tampering without a database lookup. Demonstrates a SPA getting an ID token and an access token from Google and using the access token as a Bearer header to fetch protected cat images successfully. Covers OAuth2/OpenID Connect, JWKS for public keys, warns against persistent storage in browsers, highlights revocation difficulty and recommends auth code with PKCE and refresh token rotation.

AI-written summary · about

  1. 0:00Introduction to JWT
  2. 2:27Traditional authentication
  3. 3:51Modern app architecture
  4. 6:35Understanding tokens
  5. 8:04JWT structure and security
  6. 13:04Keys and verification
  7. 14:48JWT as a digital passport
  8. 16:08Demo and API usage
  9. 19:12JWT pros and cons
  10. 21:25OAuth and OpenID Connect
  11. 26:56Summary and conclusions
  12. 29:25Q&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.