Skip to content

Commit

Permalink
Changed message back to old one
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstottmoj committed Dec 20, 2024
1 parent 4e335a7 commit 6cef239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controlpanel/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def jwk(self):
jwk = jwks_client.get_signing_key_from_jwt(self._raw_token)

if jwk.key_id != self.header["kid"]:
raise DecodeError("Key ID mismatch")
raise DecodeError(
f'No JWK with id {self.header["kid"]} found at {self.jwks_url} '
f"while decoding {self._raw_token}"
)

self._jwk = jwk.key

Expand Down

0 comments on commit 6cef239

Please sign in to comment.