From b14c37b8d29327d81fe79438afa22e9df175ddfc Mon Sep 17 00:00:00 2001 From: Einar Wigum Arbo Date: Wed, 1 Oct 2025 12:18:42 +0200 Subject: [PATCH] fix: Potential fix for code scanning alert no. 2: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Einar Wigum Arbo --- api/src/authentication/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/authentication/authentication.py b/api/src/authentication/authentication.py index 2aec38d6..c487b77b 100644 --- a/api/src/authentication/authentication.py +++ b/api/src/authentication/authentication.py @@ -24,7 +24,7 @@ def get_JWK_client() -> jwt.PyJWKClient: oid_conf = oid_conf_response.json() return jwt.PyJWKClient(oid_conf["jwks_uri"]) except Exception as error: - logger.error(f"Failed to fetch OpenId Connect configuration for '{config.OAUTH_WELL_KNOWN}': {error}") + logger.error(f"Failed to fetch OpenId Connect configuration: {error}") raise UnauthorizedException