Repository files navigation
This is a simple webpage to demostrate the OAUTH setup using Passport
Following libraries are used to setup the sample application:
Used Express library
Used EJS for quickly building front end with JS
Used passport library to manage the OAUTH process
Used following strategies library for login
passport-facebook
passport-google-oauth
passport-twitter
Used Mongoose to save the users using User schema model
Configuring passport
Setup passport using NPM command
Import passport into express (app.js)
Do initialize(), session(), serializeUser() and deserializeUser()
import all three strategies (google, twitter and facebook )
Pre setup for authorization to get ClientID, Secret and setup Callback/Redirect URL
Configuring the strategies
Refer to Facebook.strategy.js
Refer to Google.strategy.js
Refer to Twitter.strategy.js
After logged in via Facebook and Twitter
About
Java Script Projects
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.