[Answer]-Django social auth error after completing pipeline

1👍

A good place to start would be to look in social-auth’s views.py, at the few places where the redirect to LOGIN_ERROR_URL happens (the variable url is set to LOGIN_ERROR_URL and then HttpResponseRedirect(url) is called). Add some print statements, or better, set breakpoints using the python debugger. If you run your app in the Django development server, the print statements will show up in the terminal in which you ran the server. Otherwise, they may show up in your server logs, depending on your configuration. You may also find django-debug-toolbar helpful.

Using print statements or the debugger, my workflow would be:

  1. Figure out what line in views.py the redirect is triggered from
  2. Figure out what condition causes that line to be reached
  3. Inspect the variables leading to that condition

Sorry this is so general. Happy to help more if you can provide some more specific information.

Aaron

Leave a comment