From 09c43a30958c91e903e99df3a89fd9af6af47005 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 20 Mar 2025 13:14:14 +0100 Subject: [PATCH] fixed "Unable to parse an RSA_JWK from key" --- src/test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test.py b/src/test/test.py index d3d9056..72cda2b 100644 --- a/src/test/test.py +++ b/src/test/test.py @@ -167,7 +167,7 @@ def test_our_config_token(): response_public_cert = response_certificate_configuration.get('publicCert').encode('utf-8') response_parsed_cert = x509.load_pem_x509_certificate(response_public_cert, default_backend()) - jwt_decode_key = jwk.construct(response_parsed_cert, algorithm=ALGORITHMS.RS256) + jwt_decode_key = jwk.construct(response_parsed_cert.public_bytes(encoding=Encoding.PEM), algorithm=ALGORITHMS.RS256) ### build payload