Skip to content
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

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

Open
tarakeshp opened this issue Feb 15, 2019 · 0 comments

Comments

@tarakeshp
Copy link

tarakeshp commented Feb 15, 2019

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);
}

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

No branches or pull requests

1 participant