Skip to content

Conversation

dpolivaev
Copy link

Hello,

the issue already described in jaredhanson/passport-google#3 unfortunately occurs in vanilla openid apps too. So if I run your example and enter a wrong URL in the login field like this
login
I get an error stack trace displayed in the browser.
afterLogin
The reason for this behavior is that the strategy interpretes a wrong URL as internal error although it can actually be entered by a user.
After applying the suggested fix the wrong input results in a redirect back to the login page which I think is a correct behavior.
Please check this issue, it is a show stopper.

Kind regards, Dimitry

@rajgitter
Copy link

if i change from self.error to self.fail, and if i provide a bad openid url passport is not redirecting to failureRedirect url.

@rwky
Copy link

rwky commented Aug 16, 2018

@dpolivaev can you please make a PR against https://github.com/passport-next/passport-openid and it'll get looked into.

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

Successfully merging this pull request may close these issues.

3 participants