~/talk

Authstronomy: The Science of Authenticating Angular Apps

Talkat ngVikings 2019 · 2019-05-27..05-28· [security, angular]
slides:none on file

Recommends against don't store tokens in local storage and instead keeps tokens in app memory with a session cookie for silent reissues; advocates the IETF PKCE code exchange flow (code verifier/challenge) to avoid URL-delivered tokens, with SDKs handling the steps. Shows concrete Angular tools: RxJS streams for auth state, HTTP interceptors to attach tokens, and route guards including canLoad to prevent lazy modules downloading. Practical demos and code patterns are described and validated.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53Cookies
  3. 2:19How it works
  4. 3:19Why not cookies
  5. 3:54Securing with cookies
  6. 5:14Tokenbased authentication
  7. 5:43Local storage
  8. 6:57Session persistence
  9. 8:12OAuth2 guidance
  10. 13:06How does Angular help us
  11. 13:44Managing authentication events
  12. 14:42Creating authentication streams
  13. 15:19Conclusion
  14. 15:49HTTP Interceptors
  15. 16:14Provider Array
  16. 17:05Conditional Logic
  17. 17:39Asynchronous Authentication
  18. 19:05Route Guards
  19. 20:28CanActivate
  20. 21:28GuardLazyLoading
  21. 23:46Recap
~/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.