diff --git a/src/test/test.py b/src/test/test.py index 39cfbcf..a82c625 100644 --- a/src/test/test.py +++ b/src/test/test.py @@ -309,8 +309,6 @@ def test_our_config_token_with_our_key(): .sign(my_private_key, hashes.SHA256()) ) - my_jwt_decode_key = jwk.construct(my_certificate.public_bytes(encoding=Encoding.PEM), algorithm=ALGORITHMS.RS256) - ### build payload cur_time = datetime.now(UTC) @@ -352,9 +350,11 @@ def test_our_config_token_with_our_key(): ### + my_jws_sign_key = jwk.construct(my_certificate.public_bytes(encoding=Encoding.PEM), algorithm=ALGORITHMS.RS256) + my_response_config_token = response.get('configToken') - payload = jws.verify(my_response_config_token, key=my_jwt_decode_key, algorithms=ALGORITHMS.RS256) + payload = jws.verify(my_response_config_token, key=my_jws_sign_key, algorithms=ALGORITHMS.RS256) payload = json.loads(payload) assert payload.get('iss') == 'NLS Service Instance' assert payload.get('aud') == 'NLS Licensed Client'