From dc345815c0c344de115278a37e837ba6a6f1b272 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 23 Jul 2021 09:38:58 +0200 Subject: [PATCH] Use RSA-OAEP instead of RSA1_5 for jwt tests The latest version of jwcrypto has disabled RSA1_5 by default, making the tests fail. --- tests/test_token_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_token_plugins.py b/tests/test_token_plugins.py index 17218bb1..10b97c93 100644 --- a/tests/test_token_plugins.py +++ b/tests/test_token_plugins.py @@ -167,7 +167,7 @@ def test_asymmetric_jwe_token_plugin(self): public_key.import_from_pem(public_key_data) jwt_token = jwt.JWT({"alg": "RS256"}, {'host': "remote_host", 'port': "remote_port"}) jwt_token.make_signed_token(private_key) - jwe_token = jwt.JWT(header={"alg": "RSA1_5", "enc": "A256CBC-HS512"}, + jwe_token = jwt.JWT(header={"alg": "RSA-OAEP", "enc": "A256CBC-HS512"}, claims=jwt_token.serialize()) jwe_token.make_encrypted_token(public_key)