From 5cf2fe1c148b23a6cf6ae6625e770f1e8a431771 Mon Sep 17 00:00:00 2001 From: bramjanssen Date: Wed, 4 Feb 2026 16:40:00 +0100 Subject: [PATCH] fix: added support for public client --- app/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/auth.py b/app/auth.py index ee251cd..82d2014 100644 --- a/app/auth.py +++ b/app/auth.py @@ -131,7 +131,7 @@ async def _exchange_token_for_provider( token_url = f"{KEYCLOAK_BASE_URL}/protocol/openid-connect/token" # Check if the necessary settings are in place - if not settings.keycloak_client_id or not settings.keycloak_client_secret: + if not settings.keycloak_client_id: raise AuthException( http_status=status.HTTP_500_INTERNAL_SERVER_ERROR, message="Token exchange not configured on the server (missing client credentials).",