diff options
author | Mark Adams <madams@atlassian.com> | 2015-03-17 14:18:08 -0500 |
---|---|---|
committer | Mark Adams <madams@atlassian.com> | 2015-03-17 14:18:08 -0500 |
commit | 2f21e386cd4d32bf3528ab27f552c94740959b60 (patch) | |
tree | b3f192be577c8e8b3ba0ed4b1259d8426737bff9 /jwt/algorithms.py | |
parent | 5dec6e2baf0d2b52caf1c9dde4f5c88625782aa9 (diff) | |
download | pyjwt-2f21e386cd4d32bf3528ab27f552c94740959b60.tar.gz |
Removed extra parenthesis around algorithm defaults.
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r-- | jwt/algorithms.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index 4616378..91bf350 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -27,13 +27,13 @@ def _register_default_algorithms(pyjwt_obj): pyjwt_obj.register_algorithm('HS512', HMACAlgorithm(HMACAlgorithm.SHA512)) if has_crypto: - pyjwt_obj.register_algorithm('RS256', RSAAlgorithm(RSAAlgorithm.SHA256())) - pyjwt_obj.register_algorithm('RS384', RSAAlgorithm(RSAAlgorithm.SHA384())) - pyjwt_obj.register_algorithm('RS512', RSAAlgorithm(RSAAlgorithm.SHA512())) + pyjwt_obj.register_algorithm('RS256', RSAAlgorithm(RSAAlgorithm.SHA256) + pyjwt_obj.register_algorithm('RS384', RSAAlgorithm(RSAAlgorithm.SHA384) + pyjwt_obj.register_algorithm('RS512', RSAAlgorithm(RSAAlgorithm.SHA512) - pyjwt_obj.register_algorithm('ES256', ECAlgorithm(ECAlgorithm.SHA256())) - pyjwt_obj.register_algorithm('ES384', ECAlgorithm(ECAlgorithm.SHA384())) - pyjwt_obj.register_algorithm('ES512', ECAlgorithm(ECAlgorithm.SHA512())) + pyjwt_obj.register_algorithm('ES256', ECAlgorithm(ECAlgorithm.SHA256)) + pyjwt_obj.register_algorithm('ES384', ECAlgorithm(ECAlgorithm.SHA384)) + pyjwt_obj.register_algorithm('ES512', ECAlgorithm(ECAlgorithm.SHA512)) class Algorithm(object): |