diff options
author | Mark Adams <mark@markadams.me> | 2016-10-24 13:26:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 13:26:45 -0500 |
commit | 0d0d10c0e3d85d868a91815b6e88b0ee122998c6 (patch) | |
tree | a0b85427155964185160bae4b2451a1e6dc63b1c | |
parent | 6112c18eb482eb21e847b0af8096826d6b68fcc9 (diff) | |
parent | 8b2a83d41c8bf747a9708a7565614642c7b7feb0 (diff) | |
download | pyjwt-0d0d10c0e3d85d868a91815b6e88b0ee122998c6.tar.gz |
Merge pull request #225 from jpadilla/ecdsa-bkwards-compat
Add back 'ES512' for backward compatibility (for now)
-rw-r--r-- | jwt/algorithms.py | 1 |
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) |