Using nodejs passport for multiple OAuth2.0 methods to login to the same account
Im trying to use passport to use OAuth2 to login but I’m not fully understanding the documentation.
Im trying to use passport to use OAuth2 to login but I’m not fully understanding the documentation.
Using Passport.js is there a way for me to specify multiple authentication providers for the same route?
I have already implemented the Facebook-LogIn in my website with express js and passport-Facebook. It works well (I get field profile), but the problem is that I don’t get the Email. I get an error: email : profile.emails[0].value, TypeError: Cannot read property ‘0’ of undefined My code: passport.use('facebook',new FacebookStrategy({ clientID : config.facebook.id, clientSecret : config.facebook.secret, … Read more
So here is my configuration for passport-facebook strategy:
I was looking for a way to let my client authorize with the facebook JS SDK and then somehow transfer this authorization to my node server (so it can verify requests with the fb graph api)
I am creating an Android/iOS app which communicates with a Node.js server and would like to identify them securely on my server using Google (and/or Facebook) and OAuth2. I’ve looked at the following documentation: https://developers.google.com/+/web/signin/server-side-flow
I’ve been using Passport on my server for user authentication.
When a user is signing in locally (using a username and password), the server sends them a JWT which is stored in localstorage, and is sent back to server for every api call that requires user authentication.
I am using passport.js + passport-facebook-token to secure my API build with Strongloop’s Loopback Framework.
I am able to retrieve basic user information via passport-facebook, following the below code and saving in mongodb:
On our ExpressJS application, when pushed to production server, the passport session gets mixed up at random times. At random, the page can load the view of another user even when I did not log out of my session. Without doing anything else, another refresh will bring me back to my own account (at random too).