Skip to content

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

Closed
ghost opened this issue Feb 20, 2014 · 4 comments
Closed

Why is mongo required to use Passport? #94

ghost opened this issue Feb 20, 2014 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 20, 2014

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?

@snowman-repos
Copy link

The passport configuration uses a local strategy which needs to lookup existing users in the database. Sessions are also stored in the mongodb.

@ghost
Copy link
Author

ghost commented Feb 20, 2014

Ok, thanks for the explanation!

@ghost ghost closed this as completed Feb 20, 2014
@iqrow
Copy link

iqrow commented Feb 20, 2014

@CaptSaltyJack additional information -

Passport (when used in isolation) is db agnostic and doesn't require mongodb to run necessarily.

@melo0187
Copy link

melo0187 commented Jun 2, 2014

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants