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

Fix for false "internal error" message in Browser #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix for false "internal error" message in Browser #16

wants to merge 1 commit into from

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.

None yet

3 participants