Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable x25519 JWT testing and pin JWCrypto>=1.5.1 #5899

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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