From f5ddeac042a6a1f1bf8bf2a0aed8ec8379adf58f Mon Sep 17 00:00:00 2001 From: elisanp Date: Thu, 3 Oct 2024 09:52:14 +0200 Subject: [PATCH] wip: patch get connection --- pyeudiw/vci/jwks_provider.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyeudiw/vci/jwks_provider.py b/pyeudiw/vci/jwks_provider.py index b558e712..46785709 100644 --- a/pyeudiw/vci/jwks_provider.py +++ b/pyeudiw/vci/jwks_provider.py @@ -27,7 +27,8 @@ def _verify_response_issuer(self, exp_issuer: str, response_json: dict) -> None: def _get_jwk_metadata(self, uri: str) -> dict: try: - resp = get_http_url(uri, self.httpc_params) + # TODO: sistemare httpc params + resp = get_http_url(uri, {"connection": {"ssl": False}, "session": {"timeout": 6}}, http_async=False) response: dict = resp[0].json() return response except Exception as e: @@ -36,7 +37,8 @@ def _get_jwk_metadata(self, uri: str) -> dict: def _get_jwkset_from_jwkset_uri(self, jwkset_uri: str) -> list[dict]: try: - resp = get_http_url(jwkset_uri, self.httpc_params) + # TODO: sistemare httpc params + resp = get_http_url(jwkset_uri, {"connection": {"ssl": False}, "session": {"timeout": 6}}, http_async=False) jwks: dict[Literal["keys"], list[dict]] = resp[0].json() return jwks.get("keys", []) except Exception as e: