AngellusMortis / django_microsoft_auth

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.
MIT License
137 stars 84 forks source link

could verify id_token sig: It is required that you pass in a value for the "algorithms" argument when calling decode(). #444

Closed pydevink closed 2 years ago

pydevink commented 3 years ago

I am using Django 3.1.5 version and I configured everything exactly the same as in the Documentation.

When I try to login using AD account, I'm getting the error : could verify id_token sig: It is required that you pass in a value for the "algorithms" argument when calling decode().

I have no idea what this means in terms of configuration - do I need to add something or?

serl commented 3 years ago

Hello, Same here! I configured MICROSOFT_AUTH_CLIENT_ID, MICROSOFT_AUTH_CLIENT_SECRET and MICROSOFT_AUTH_TENANT_ID. I'm trying to connect to localhost:8000/admin.

serl commented 3 years ago

Digging a little, it looks like it has already been solved in #430.

pydevink commented 3 years ago

But why do we have this error than? :)

pydevink commented 3 years ago

I'm using latest stable version

serl commented 3 years ago

Yes, sorry I didn't manage to end the sentence 😆 That change hadn't yet been published to pip, so that's why...

ihelmer07 commented 3 years ago

Any ETA on when #430 will be published to pip @AngellusMortis

aydtmiri commented 3 years ago

@ihelmer07 were you able to continue without the correction? I'm facing the same problem

ihelmer07 commented 3 years ago

@aydtmiri - I had to update my dockerfile to clone the repo and install manually with python setup.py install.

serl commented 3 years ago

You could still use pip:

pip install git+https://github.com/AngellusMortis/django_microsoft_auth.git