Skip to content

Express, OAuth, Passport example project & live code-along.

Notifications You must be signed in to change notification settings

justsml/oauth-code-along

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Code Along

Links provided to setup OAuth keys in Objectives Section.

Lessons / Videos

Objectives

  • 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
  • Setup Passport & routes
  • Profit!

Part 2

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

References/Resources

  1. Dan's Express App Template
  2. Social auth snippets

About

Express, OAuth, Passport example project & live code-along.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published