Search code examples
pythondjangodjango-socialauth

django-social auth Exception Type: AuthAlreadyAssociated how to redirect custom


Trying to add social auth with my django website. All is done can log-in/sign up. But getting only one problem while trying to sign-up with already existed social account it's redirecting me to a exception page(Exception Type: AuthAlreadyAssociated) but i want the user to redirect on a page where i want. How ?


Solution

  • That's the purpose for the Exception Middleware, you need to extend it to set the needed URL to redirect to.