Skip to content

Commit

Permalink
Enable x25519 JWT testing and pin JWCrypto>=1.5.1 (#5899)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Jan 9, 2024
1 parent c48b553 commit 6a2cb50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/js-modules/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def generate_and_verify_jwk(client):
assert body["pem"] == pub_pem

# EdDSA
# Note: x25519 is not supported by jwcrypto just yet
for curve in ["curve25519"]:
for curve in ["curve25519", "x25519"]:
priv_pem, pub_pem = infra.crypto.generate_eddsa_keypair(curve)
# Private
ref_priv_jwk = jwk.JWK.from_pem(priv_pem.encode()).export_private(as_dict=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ httpx[http2] == 0.23.*
locust
pyOpenSSL
grpcio-tools == 1.44.0 # Pin to a working version for SNP platform
JWCrypto
JWCrypto>=1.5.1 # x25519 support
pycose
rich
# Piccolo dependencies
Expand Down

0 comments on commit 6a2cb50

Please sign in to comment.