diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3a22594d..708269ab 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,7 @@ Changed ~~~~~~~ - Use ``Sequence`` for parameter types rather than ``List`` where applicable by @imnotjames in `#970 `__ +- Remove algorithm requirement from JWT API, instead relying on JWS API for enforcement, by @luhn in `#975 `__ Fixed ~~~~~ diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py index e162623c..c55f94b9 100644 --- a/jwt/api_jwt.py +++ b/jwt/api_jwt.py @@ -144,11 +144,6 @@ def decode_complete( options.setdefault("verify_aud", False) options.setdefault("verify_iss", False) - if options["verify_signature"] and not algorithms: - raise DecodeError( - 'It is required that you pass in a value for the "algorithms" argument when calling decode().' - ) - decoded = api_jws.decode_complete( jwt, key=key,