We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac7f80 commit 6ae3175Copy full SHA for 6ae3175
jose/jws.py
@@ -208,8 +208,11 @@ def _load(jwt):
208
def _sig_matches_keys(keys, signing_input, signature, alg):
209
for key in keys:
210
key = jwk.construct(key, alg)
211
- if key.verify(signing_input, signature):
212
- return True
+ try:
+ if key.verify(signing_input, signature):
213
+ return True
214
+ except:
215
+ pass
216
return False
217
218
0 commit comments