From 2c50bcffba01133702a6f1759b837c6c4ea994d5 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Sat, 9 Jan 2021 22:54:05 +0000 Subject: [PATCH] Fix algorithm typo (#430) * Fix typo * Fix spelling of algorithms in call to jwt.decode * Correct call to decode --- microsoft_auth/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microsoft_auth/client.py b/microsoft_auth/client.py index 8243183d..25fcd699 100644 --- a/microsoft_auth/client.py +++ b/microsoft_auth/client.py @@ -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