Skip to content

Commit 4638c12

Browse files
committed
jwt.decode: Set algorithms to all when None
See #346
1 parent 34bd82c commit 4638c12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jose/jwt.py

+3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ def decode(token, key, algorithms=None, options=None, audience=None, issuer=None
141141

142142
verify_signature = defaults.get("verify_signature", True)
143143

144+
if algorithms is None:
145+
algorithms = ALGORITHMS.ALL
146+
144147
try:
145148
payload = jws.verify(token, key, algorithms, verify=verify_signature)
146149
except JWSError as e:

0 commit comments

Comments
 (0)