~/talk

Securing Single Page Applications with Token Based Authentication

Talkat WeAreDevelopers Conference Vienna 2016 · on Wednesday, 2016-04-13· [security, web-platform]
links:none on file
slides:none on file

Explains practical trade-offs for using JSON Web Tokens in single‑page apps: recommends short‑lived tokens plus a refresh flow, avoids localStorage because XSS steals tokens, favors HTTP‑only cookies with a double‑submit cookie CSRF countermeasure, and implements a server‑side revocation list (blacklist) for immediate logout. Covers signature verification, expiration checks, HTTPS requirement, and the engineering cost of refresh and revocation versus the statelessness benefit.

AI-written summary · about

  1. 0:00Introduction to single page application security
  2. 3:56SPA security guidelines
  3. 5:42Token auth fundamentals
  4. 9:58How JSON Web Tokens work in practice
  5. 14:29Cross-site request forgery risks and solutions
  6. 19:42Token expiration strategies
  7. 22:11Common security misconceptions in SPAs
  8. 24:05Delegated token auth
~/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.