~/talk

Make your Angular app a max security prison

Talkat ng-europe 2014 · 2014-10-22..10-23· [security, angular]
speakerdeck:woloski
speakerdeck:mgonto
slides:none on file

Demo builds a tiny Angular SPA plus a Node backend that issues JSON Web Tokens and it actually works after some typos; implementation shows signup/login endpoints that return an ID token, storing it in localStorage via Angular storage, attaching it to every request with an JWT interceptor, and protecting routes by checking token presence and expiry with Angular-JWT. Live coding includes the exact curl/data flow: header = Authorization: Bearer <token>, token signature validation on the server, and rejection when signatures or secrets mismatch.

AI-written summary · about

  1. 0:00Modern auth challenges
  2. 2:16Token-based auth needed
  3. 8:02How JSON Web Tokens work in practice
  4. 11:06Live coding setup
  5. 19:33Login and token storage
  6. 24:02Sending tokens with API
  7. 27:35Protecting routes in SPA
  8. 30:47Decoding token client-side
  9. 32:32Closing remarks
~/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.