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

Missing a "backend" when resolving the LOGIN_ERROR_URL setting in the exception middleware #875

Open
offbyone opened this issue Jan 14, 2024 · 0 comments

Comments

@offbyone
Copy link

In social_django/middleware.py, the redirect URI is resolved like this:

    def get_redirect_uri(self, request, exception):
        strategy = getattr(request, "social_strategy", None)
        return strategy.setting("LOGIN_ERROR_URL")

This doesn't pass the backend into strategy.setting() which means it doesn't load a backend-specific view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant