From 46690624a08f68430e17ea94b188d140baf633ee Mon Sep 17 00:00:00 2001 From: Salvatore Laiso <32564922+salvatorelaiso@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:57:28 +0100 Subject: [PATCH] fix: integration-test (#153) Co-authored-by: Salvatore Laiso --- example/satosa/integration_test/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/example/satosa/integration_test/main.py b/example/satosa/integration_test/main.py index 07424a5c..0807980a 100644 --- a/example/satosa/integration_test/main.py +++ b/example/satosa/integration_test/main.py @@ -15,7 +15,7 @@ trust_chain_wallet, ta_ec, ta_ec_signed, - leaf_cred_signed + leaf_cred_signed, leaf_cred_jwk_prot ) from pyeudiw.jwk import JWK @@ -160,10 +160,12 @@ ISSUER_PRIVATE_JWK = JWK(leaf_cred_jwk.serialize(private=True)) +CREDENTIAL_ISSUER_JWK = JWK(leaf_cred_jwk_prot.serialize(private=True)) + issued_jwt = issue_sd_jwt( sd_specification, settings, - ISSUER_PRIVATE_JWK, + CREDENTIAL_ISSUER_JWK, WALLET_PUBLIC_JWK, trust_chain=trust_chain_issuer ) @@ -242,7 +244,7 @@ } encrypted_response = JWEHelper( # RSA (EC is not fully supported todate) - JWK(rp_ec["metadata"]['wallet_relying_party']['jwks'][1]) + JWK(rp_ec["metadata"]['wallet_relying_party']['jwks']['keys'][1]) ).encrypt(response)