From e34126c52ab253520337f43b545fb218bb70b404 Mon Sep 17 00:00:00 2001 From: BinoyOza-okta Date: Wed, 7 Jan 2026 22:42:13 +0530 Subject: [PATCH 1/3] - Clear cache if http client fails --- okta_jwt_verifier/jwt_verifier.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/okta_jwt_verifier/jwt_verifier.py b/okta_jwt_verifier/jwt_verifier.py index d5b36aa..8a47a70 100644 --- a/okta_jwt_verifier/jwt_verifier.py +++ b/okta_jwt_verifier/jwt_verifier.py @@ -211,7 +211,13 @@ async def get_jwks(self): jwks_uri = self._construct_jwks_uri() headers = {'User-Agent': f'okta-jwt-verifier-python/{version}', 'Content-Type': 'application/json'} - jwks = await self.request_executor.get(jwks_uri, headers=headers) + try: + jwks = await self.request_executor.get(jwks_uri, headers=headers) + except Exception as e: # This is needed if the http client fails + print('String e: '+ str(e)) + self.request_executor.cache.release_new_key(('GET', jwks_uri)) + self._clear_requests_cache() + if not self.cache_jwks: self._clear_requests_cache() return jwks From 417dcf60b20fec3590d736dca69fd646a1ac3afc Mon Sep 17 00:00:00 2001 From: BinoyOza-okta Date: Wed, 7 Jan 2026 23:39:52 +0530 Subject: [PATCH 2/3] - Added resource_class as large to circleci config. --- .circleci/config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 86e7b18..7fcf85b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,12 +36,20 @@ jobs: scan-all-projects: true skip-unresolved: false run-on-non-main: true + reversing-labs: + docker: + - image: cimg/python:3.10 + resource_class: large + steps: + - checkout + - platform-helpers-general/step-load-dependencies + - platform-helpers/step-reversinglabs-scan workflows: "Malware Scanner": jobs: - build - - platform-helpers/job-reversinglabs-scan: + - reversing-labs: context: - static-analysis requires: From d391392c38342ea810b911b5b3a5ea31e851509c Mon Sep 17 00:00:00 2001 From: BinoyOza-okta Date: Thu, 8 Jan 2026 11:43:53 +0530 Subject: [PATCH 3/3] - Removed the print statement. --- okta_jwt_verifier/jwt_verifier.py | 1 - 1 file changed, 1 deletion(-) diff --git a/okta_jwt_verifier/jwt_verifier.py b/okta_jwt_verifier/jwt_verifier.py index 8a47a70..72bed89 100644 --- a/okta_jwt_verifier/jwt_verifier.py +++ b/okta_jwt_verifier/jwt_verifier.py @@ -214,7 +214,6 @@ async def get_jwks(self): try: jwks = await self.request_executor.get(jwks_uri, headers=headers) except Exception as e: # This is needed if the http client fails - print('String e: '+ str(e)) self.request_executor.cache.release_new_key(('GET', jwks_uri)) self._clear_requests_cache()