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