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