From d69ab7dbfa61d36d580b3e17c148416f89ab00c3 Mon Sep 17 00:00:00 2001 From: Alain Mazy Date: Wed, 3 Jul 2024 15:53:53 +0200 Subject: [PATCH] fix --- sources/orthanc_auth_service/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/orthanc_auth_service/app.py b/sources/orthanc_auth_service/app.py index 5c58b31..11a1b68 100644 --- a/sources/orthanc_auth_service/app.py +++ b/sources/orthanc_auth_service/app.py @@ -46,7 +46,7 @@ logging.warning("ENABLE_KEYCLOAK_API_KEYS is set, using keycloak to handle api-keys") needKeycloakAdmin = True - if needKeycloakAdmin or is_secret_defined("KEYCLOAK_CLIENT_SECRET") is not None: + if needKeycloakAdmin or is_secret_defined("KEYCLOAK_CLIENT_SECRET"): keycloak_client_secret = get_secret_or_die("KEYCLOAK_CLIENT_SECRET") keycloak_admin_uri = os.environ.get("KECLOAK_ADMIN_URI", "http://keycloak:8080/admin/realms/orthanc/") keycloak_admin_client = KeycloakAdmin(keycloak_uri=keycloak_uri,