Skip to content

Commit 64a76f2

Browse files
authored
chore: JWT warnings on failed JWT ops
I'd like to have a warning meggase on failing JWT validations, or may use a debug for that and not a warning?
1 parent ec79b98 commit 64a76f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cryptojwt/jwt.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ def unpack(self, token):
377377
_msg_cls = self.iss2msg_cls[_info["iss"]]
378378
except KeyError:
379379
_msg_cls = None
380+
LOGGER.warning(
381+
"Exception unpacking a received signed or signed "
382+
f"and encrypted Json Web Token for the issuer {_info['iss']}"
383+
)
380384

381385
if _msg_cls:
382386
vp_args = {"skew": self.skew}

0 commit comments

Comments
 (0)