-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Set a different redirect_uri for oauth_errors? #431
Comments
Glad it's helpful! Try hooking into the "oauth_error" signal and returning a Response object with a redirect to where you want the user to go. https://flask-dance.readthedocs.io/en/latest/signals.html Does that help? |
I tried this:
But when I click Cancel on the Facebook permissions request page, it just keeps redirecting me back to it. It's like the Also, in So, it's like the |
My apologies, it looks like I never actually built that feature! Flask-Dance had a similar feature for the Well, as of version 7.1.0 (published on PyPI today), this feature now exists. I even added it to the documentation! Could you please try upgrading to the latest version of Flask-Dance, and let me know if it works now? |
First of all, thanks for developing this project, I just started using it and it's fantastic.
During testing, I noticed that if I deny granting Facebook permissions when first creating an account, then the user is redirected to the page I set, but it requires the user to be authenticated, so it then redirects the user to the Facebook permissions request page, resulting in an endless loop (if user cancels permissions page).
What I'd like to happen is if the authentication was successful, then redirect to my page that requires authentication, but if there's an error, then redirect to my home page.
Is there a way to handle something like this with Flask-Dance?
The text was updated successfully, but these errors were encountered: