Skip to content

Instantly share code, notes, and snippets.

@cemkozinoglu
Created June 28, 2011 20:06
Show Gist options
  • Save cemkozinoglu/1052052 to your computer and use it in GitHub Desktop.
Save cemkozinoglu/1052052 to your computer and use it in GitHub Desktop.
SOCIAL_AUTH_ASSOCIATE_USER_REDIRECT_URL
# Add this to the top in social_auth/views.py
ASC_USER_REDIRECT = getattr(settings, 'SOCIAL_AUTH_ASSOCIATE_USER_REDIRECT_URL', '')
# in def associate_complete(request, backend): change the line:
# url = request.session.pop(REDIRECT_FIELD_NAME, '') or DEFAULT_REDIRECT TO:
url = ASC_USER_REDIRECT or request.session.pop(REDIRECT_FIELD_NAME, '') or DEFAULT_REDIRECT
@cemkozinoglu
Copy link
Author

Also same trick can or should be done for Disconnect as well

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