Adam Jasper

Results 7 comments of Adam Jasper

I got it to work after a few tweaks, what are you having an issue with specifically?

Check out the examples for passport-local (https://github.com/jaredhanson/passport-local) and then it should just be case of changing the options for your strategy. The thing I had an issue with was the...

In this snippet of code: app.get('/login', passport.authenticate('local', { failureRedirect: '/login', failureFlash: true }), function(req, res) { res.redirect('/'); }); passport.authenticate('local'... should be passport.authenticate('passport-openidconnect'...

Corey, Try this (changing passport-openidconnect to openidconnect): app.get('/login', passport.authenticate('openidconnect', { failureRedirect: '/login', failureFlash: true }), function(req, res) { console.log('verify hit'); res.redirect('/'); });

Good news. Just create your own local module and base it on passport-openidconnect then you can change it to whatever you like. Check the openid-connect specs for the different flows.

This is the function that will capture your profile, claims etc. You need it. In this function, you will usually pull the relevant user from a database and return that...

Not that would help you I'm afraid. Check the samples. There is one that pulls a user from MongoDB.