Auth0 with Django taking very long to complete login

Hi everyone,
I’m currently working on a small Django project that requires a login and I wanted to use Auth0, since I’ve used it in passed project.

I followed a couple of guides, mainly:
https://auth0.com/blog/django-authentication/
https://auth0.com/docs/quickstart/webapp/django/01-login

whereas the former seems to be lacking an implementation for the logout, that I could only find on the second guide.

That being said - my real problem is that the time it takes to “complete” the login flow is very long. (i.e. 5 minutes) I can’t really pin point the issue, since I’m not too familiar with the python ecosystem and the dependencies I have used to accomplish this.
(python-jose, social-auth-app-django)

It looks a lot like a timeout to me, but maybe someone has another idea where it gets stuck.

Best regards,
Roman

Main Requirements:

Django==4.0.3
python-jose==3.3.0
social-auth-app-django==5.0.0
social-auth-core==4.2.0

Full requirements.txt:

asgiref==3.5.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.12
cryptography==36.0.2
defusedxml==0.7.1
Django==4.0.3
ecdsa==0.17.0
idna==3.3
oauthlib==3.2.0
psycopg2==2.9.3
pyasn1==0.4.8
pycparser==2.21
PyJWT==2.3.0
python-jose==3.3.0
python3-openid==3.2.0
requests==2.27.1
requests-oauthlib==1.3.1
rsa==4.8
six==1.16.0
social-auth-app-django==5.0.0
social-auth-core==4.2.0
sqlparse==0.4.2
urllib3==1.26.9

Figured it out. Multiple Python installations messed up the callback.

Wiped Python completely from my system, reinstalled and worked like a charm.

1 Like

Woooohooo! Glad you have figured it out and really appreciate that you shared it with the rest of community!