summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-07-23 09:38:58 +0200
committerPierre Ossman <ossman@cendio.se>2021-07-23 09:38:58 +0200
commitdc345815c0c344de115278a37e837ba6a6f1b272 (patch)
tree6d3caf63b7ec7f3b0e34d2fea9389e8d94184061
parent71d55fcaa8fff045048b08d3502a19cfeefec19e (diff)
downloadwebsockify-dc345815c0c344de115278a37e837ba6a6f1b272.tar.gz
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.
-rw-r--r--tests/test_token_plugins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_token_plugins.py b/tests/test_token_plugins.py
index 17218bb..10b97c9 100644
--- a/tests/test_token_plugins.py
+++ b/tests/test_token_plugins.py
@@ -167,7 +167,7 @@ class JWSTokenTestCase(unittest.TestCase):
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)