Angular's User Authentication Tool Belt
summary
Concrete implementation of a JSON Web Token login flow: credentials exchange for a signed token, choice of localStorage vs cookie storage, and attaching the token to requests with an HTTP interceptor that clones requests, adds an Authorization header, and catches 401s to trigger a redirect. Route guards implement canActivate and canLoad checks (including role/scope checks) to prevent UI load or lazy module download. Working example repository and a MEAN-series demo exist to try these patterns.
AI-written summary · about
chapters (4)
related talks
39mLogin and Access Control in Angular
33mMake your Angular app a max security prison
26mThe Science of Authenticating Angular Apps
28mA Token Walks Into a SPA...
25mAuthstronomy: The Science of Authenticating Angular Apps
20mAuthentication from Scratch
26mAngular Router Authentication and Authorization Real LIVE LIVE LIVE LIVE LIVE Demo
39mAuthentication & Authorization Architecture in the MEAN Stack
