-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Update OAuth Error Page #830
Comments
I was able to recreate this error in local by using my GitHub app and LinkedIn page credentials (since we are not going to login but just fix the cancel event). Due to a helpful pointer from @QuanGiap and others in the group, I was able to deduce that a default error url was getting injected and was contemplating adding a custom url path rule on top of this similar to this stackoverflow. But I found a better solution similar to this stackoverflow which is less of a hack than the previous one. I overrode this method to do an Immediate HTTP redirect back to the login page on any error (or user cancel) in authentication flow. If this works in production, then it will be the official solution for the fix. |
Our error page for any failed or cancelled attempt at logging in with oauth (Github, FB, LinkedIn, etc) is currently unstyled, and not in the DemocracyLab page template:
The easiest way to get to this error page is:
To solve this issue, this error page should be:
More broadly,
Pull Request #386 and may provide useful context for this issue.
The text was updated successfully, but these errors were encountered: