rangle / ngCourse2

An Angular Course from Rangle.io
Other
184 stars 126 forks source link

Outline chapter on authentication #905

Closed gvwilson closed 1 year ago

gvwilson commented 7 years ago

Create point-form outline for chapter on authentication with Angular

winkerVSbecks commented 7 years ago

@gvwilson does this work?

A lot of content could be repurposed from: ngCourse 1.0 – authentication

gvwilson commented 7 years ago

This is a great start - a couple of questions:

  1. Will you show people how to block access the right way with Angular? I presume there's a middleware decorator thingy?
  2. 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).

Thanks, Greg

winkerVSbecks commented 7 years ago

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.