Skip to content

Commit

Permalink
Merge PR #626 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Mar 19, 2024
2 parents 9cd3daf + 77df6d8 commit 48b8d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_jwt/models/auth_jwt_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def _decode(self, token, secret=None):
else:
try:
header = jwt.get_unverified_header(token)
key = self._get_key(header.get("kid")) # Can raise PyJWKClientError
except Exception as e:
_logger.info("Invalid token: %s", e)
raise UnauthorizedInvalidToken() from e
key = self._get_key(header.get("kid"))
algorithm = self.public_key_algorithm
try:
payload = jwt.decode(
Expand Down

0 comments on commit 48b8d7e

Please sign in to comment.