Open mithun-daa opened 8 years ago
Any idea why my passport callback or my serializer/deserailizer are not being called at all? My provider is authenticating the user and sends a token back to my callback. I did change it to use form_post.
form_post
app.use(passport.initialize()); app.use(passport.session()); passport.serializeUser(function (user, done) { console.log('in serialize'); done(null, user); }); passport.deserializeUser(function (user, done) { console.log('in de-serialize'); done(null, user); }); passport.use(new OidcStrategy({ authorizationURL: 'https://localhost:44316/identity/connect/authorize', tokenURL: 'https://localhost:44316/identity/connect/token', userInfoURL: 'https://localhost:44316/identity/connect/userinfo', clientID: 'mvc', clientSecret: 'secret', callbackURL: '/callback', responseType: 'id_token', scope: ['profile'] }, function (iss, sub, profile, done) { console.log('In callback 1'); console.log(profile); }));
The passport.use callback never gets invoked.
passport.use
You should call app.use(passport.initialize()) after passport being configured, maybe?
I have same issue
Any idea why my passport callback or my serializer/deserailizer are not being called at all? My provider is authenticating the user and sends a token back to my callback. I did change it to use
form_post
.The
passport.use
callback never gets invoked.