Closed emb-karan closed 3 years ago
Dupe of #431
I have fixed the algorithm typo error in microsoft_auth/client.py, but still, I am getting the same error
Alright, I got it, went to Pyjwt doc https://pyjwt.readthedocs.io/en/stable/usage.html
code on line 149 should look like this
claims = jwt.decode(
token,
public_key,
algorithms=["RS256"], # correction needed here
audience=self.config.MICROSOFT_AUTH_CLIENT_ID,
)
could verify id_token sig: It is required that you pass in a value for the "algorithms" argument when calling decode(). Bad Request: /microsoft/auth-callback/