jaredhanson / passport-openidconnect

OpenID Connect authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openidconnect/?utm_source=github&utm_medium=referral&utm_campaign=passport-openidconnect&utm_content=about
MIT License
188 stars 173 forks source link

InternalOAuthError: failed to obtain access token passport-openidconnect #69

Open tarakeshp opened 5 years ago

tarakeshp commented 5 years ago

File name : passport-openidconnect\lib\strategy.js Line number : 93 if (err) { self.error(new InternalOAuthError('failed to obtain access token', err) ) ;

the error is logged in the console. But it does not a failureRedirect for some reason.

on the browser it just display as below image My https is not valid though.

It should redirect to failure redirect url automatically.

So as quick fix, I am doing below. if (err) { self.error(new InternalOAuthError('failed to obtain access token', err)) return self.fail(err); }