Closed gvwilson closed 1 year ago
@gvwilson does this work?
HTTP
wrapper which would allow us to handle errors and authentication in a centralized locationA lot of content could be repurposed from: ngCourse 1.0 – authentication
This is a great start - a couple of questions:
Thanks, Greg
Will you show people how to block access the right way with Angular? I presume there's a middleware decorator thingy?
I don't know if there is a right way. It depends on the architecture. I prefer the HTTP wrapper approach. The other option is to use HTTP interceptors.
Am I right in assuming this plan stores credentials locally? If so, can you get into OAuth flow and how to implement that (since we probably want people to use external credential stores rather than rolling their own, and it's a chance to talk about other architecture issues).
Only the auth token. Doesn't matter where this token comes from. I wanted to focus on client side only.
We could talk about OAuth with Google/Twitter/etc. However, they all require a backend component.
Create point-form outline for chapter on authentication with Angular