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

SOCIAL_AUTH_LOGIN_REDIRECT_URL affects the normal login flow #1

Closed
onurmatik opened this issue Jul 13, 2014 · 3 comments
Closed

SOCIAL_AUTH_LOGIN_REDIRECT_URL affects the normal login flow #1

onurmatik opened this issue Jul 13, 2014 · 3 comments

Comments

@onurmatik
Copy link

In this example, the custom backend redirects to where SOCIAL_AUTH_LOGIN_REDIRECT_URL is pointing to. But this setting also affects the actual login flow and makes users to redirect to the user invite page after regular login as well.

How can I make the invite friends redirect to 'done' view without changing login flow?

@omab
Copy link
Owner

omab commented Jul 15, 2014

@omat, you can set a redirect value in the invite link, something like {% url "social:begin" backend="facebook" %}?invite=1&next=/invite/form, and leave SOCIAL_AUTH_LOGIN_REDIRECT_URL just for the normal flow.

I've updated the example to show that.

@onurmatik
Copy link
Author

thanks a lot. this solved it.

@omab omab closed this as completed Jul 15, 2014
@amoghly
Copy link

amoghly commented Oct 14, 2015

@omab, have you tried similar scenario with dsa? I get wrong backend error.

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

No branches or pull requests

3 participants