Skip to content

Commit

Permalink
Use RSA-OAEP instead of RSA1_5 for jwt tests
Browse files Browse the repository at this point in the history
The latest version of jwcrypto has disabled RSA1_5 by default, making
the tests fail.
  • Loading branch information
CendioOssman committed Jul 23, 2021
1 parent 71d55fc commit dc34581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_token_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dc34581

Please sign in to comment.