Questions tagged [passport]
Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more. See passportjs.org for more information.
8 questions
4
votes
1
answer
1k
views
Implementing Passport authentication with promises
Here is code implementing Passport authentication with a Google Strategy. It uses Mongoose to store and retrieve user data.
You might need to be familiar with both of these technologies to review ...
2
votes
1
answer
189
views
User authentication using Passport
I'm currently building a Node/Express app using Passport for user authentication and Sequelize for database queries. It's a 'To-do list' app which currently has 3 models: User, List and Task. My back-...
3
votes
0
answers
1k
views
Redirect to previous page using Passport Facebook strategy in Express
Somehow, I couldn't redirect the user back after its authentication. I was using successReturnToOrRedirect property, but it kept sending it back to ...
4
votes
0
answers
326
views
Passport user authentication
I'm using Passport in Node.js app to authenticate user by email and password (login) and also by token.
Email and password are used only when user is logging in. Passport local strategy generates ...
4
votes
2
answers
2k
views
Modularize this node.js express server code for routes and session handlers?
I have express node.js server code using Passport. It receives a user to authenticate it and ...
5
votes
1
answer
442
views
node.js Passport Wrapper 3
First attempt was done here
Second attempt was done here
Huge comment at top
...
11
votes
1
answer
582
views
node.js Passport Wrapper 2
First attempt was done here:
My second attempt (now using jslint to make sure the spacing is correct and have incorporate the majority of the feedback from previous attempt).
...
11
votes
1
answer
574
views
node.js passport wrapper
I have started some experiments with node.js.
Any comment on style (especially the callbacks) and best practice is appreciated:
PassportControl.js
...