We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ac7f80 + 6ae3175 commit 26eda64Copy full SHA for 26eda64
1 file changed
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