Links provided to setup OAuth keys in Objectives Section.
- Define OAuth, Passport, Session
- OAuth: Method for authenticating users w/ 3rd party providers
- Passport: Auth for express
- Session: Place to store user info - on the server
- Research & Draw OAuth Diagram
- Setup Keys for one of: Twitter, Github, Facebook, Google.
- Setup express bits
- Run
npm install express express-session body-parser morgan cors passport passport-github passport-twitter
- Run
- Setup Passport & routes
- Profit!
Review code from part 1 Then Make it do The Thing™
-
Describe at least 4 critical parts of an Express+Passport app
- 3 minutes to review code
- Write short notes on slates/desks.
- serialize/deserialize
- in memory data for
users
- Authorization - restricting routes
- Passport startegy & middleware
- Passport routes & callback
-
Why is session critical?
- Turn & talk
-
Describe in own words issue w/ session (and fix it)
- Turn & talk