~/talk

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

Talkat Jfokus 2019 · 2019-02-04..02-06· [security, web-platform]
slides:none on file

Explains how JWTs are three parts — header, payload and signature — and that an expiry claim inside token lets servers reject expired tokens without a DB lookup; shows a dog/cat API demo that returns 401 for no token, rejects tampered tokens and expired tokens. Recommends saving access tokens in memory, using a refresh cookie for silent re-login, and switching from implicit flow to authorization code + PKCE. Demos JSONWebToken.io and webauthn via USB/fingerprint for passwordless login, and warns revocation still needs server state (blacklist).

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Overview
  3. 1:42Traditional Authentication
  4. 7:59The payload
  5. 8:21Reserved claims
  6. 8:58Public claims
  7. 10:10Private claims
  8. 11:25Example
  9. 13:44JSON Web Tokens
  10. 14:01Asymmetric algorithms
  11. 15:35Passport example
  12. 16:31Demo
  13. 19:47Base Authentication
  14. 23:24Token theft
  15. 25:37Implicit flow
  16. 27:36Solution
  17. 29:01Web Authentication API
  18. 34:56Summary
~/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.