Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Fix algorithm typo (#430)
Browse files Browse the repository at this point in the history
* Fix typo

* Fix spelling of algorithms in call to jwt.decode

* Correct call to decode
  • Loading branch information
georgethomasuk authored Jan 9, 2021
1 parent d820c4a commit 2c50bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microsoft_auth/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def get_claims(self, allow_refresh=True):
claims = jwt.decode(
token,
public_key,
algoithm="RS256",
algorithms=["RS256"],
audience=self.config.MICROSOFT_AUTH_CLIENT_ID,
)
except jwt.PyJWTError as e:
logger.warn("could verify id_token sig: {}".format(e))
logger.warn("could not verify id_token sig: {}".format(e))
return None

return claims
Expand Down

0 comments on commit 2c50bcf

Please sign in to comment.