summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2016-10-24 13:06:46 -0500
committerMark Adams <madams@atlassian.com>2016-10-24 13:07:29 -0500
commit8b2a83d41c8bf747a9708a7565614642c7b7feb0 (patch)
treef08634c90b0b05f1ca228654298b0888cba2a34e
parent18160c494af1c142e7da14996fb1342b9abaca4f (diff)
downloadpyjwt-ecdsa-bkwards-compat.tar.gz
Add back 'ES512' for backward compatibility (for now)ecdsa-bkwards-compat
-rw-r--r--jwt/algorithms.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index b3c92d7..893833b 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -51,6 +51,7 @@ def get_default_algorithms():
'ES256': ECAlgorithm(ECAlgorithm.SHA256),
'ES384': ECAlgorithm(ECAlgorithm.SHA384),
'ES521': ECAlgorithm(ECAlgorithm.SHA512),
+ 'ES512': ECAlgorithm(ECAlgorithm.SHA512), # Backward compat for #219 fix
'PS256': RSAPSSAlgorithm(RSAPSSAlgorithm.SHA256),
'PS384': RSAPSSAlgorithm(RSAPSSAlgorithm.SHA384),
'PS512': RSAPSSAlgorithm(RSAPSSAlgorithm.SHA512)