-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Why is mongo required to use Passport? #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The passport configuration uses a local strategy which needs to lookup existing users in the database. Sessions are also stored in the mongodb. |
Ok, thanks for the explanation! |
@CaptSaltyJack additional information - Passport (when used in isolation) is db agnostic and doesn't require mongodb to run necessarily. |
It would be awesome if angular-fullstack could support to generate the Passport boilerplate independently of Mongo. If you answered yes to Mongo it does everything the same way it is right now, but if you answered no it would instead generate the Passport boilerplate with Sequelize, so that one could drop in MySQL, PostgreSQL or whatever. I found a little about Passport - Seqeulize - Mongo over here: http://sarabinns.com/tag/passport-js-sequelize-postgresql/ Right now I try to setup a project with AngularJS in the front-end and Express in the back-end and to write an api that queries a PostgreSQL DB and returns it's results to the AngularJS client with the help of pg and pg-query. Actually I got this running already but am struggling to drop in Passport. |
When running
yo angular-fullstack
and answering questions, you're only able to install Passport if you say yes to Mongo as well. Why is this? Does Passport depend on Mongo?The text was updated successfully, but these errors were encountered: