From 3abb09bf59bdb435c72bdd0cdcbb43c062514c50 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 28 May 2024 09:45:03 +0200 Subject: [PATCH] use authServerUrl when defined (#29746) fixes: #29641 Signed-off-by: Erik Jan de Wit --- js/libs/ui-shared/src/context/KeycloakContext.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/libs/ui-shared/src/context/KeycloakContext.tsx b/js/libs/ui-shared/src/context/KeycloakContext.tsx index d19660ff41..3d2768f563 100644 --- a/js/libs/ui-shared/src/context/KeycloakContext.tsx +++ b/js/libs/ui-shared/src/context/KeycloakContext.tsx @@ -49,7 +49,10 @@ export const KeycloakProvider = ({ const [error, setError] = useState(); const keycloak = useMemo(() => { const keycloak = new Keycloak({ - url: environment.authUrl, + url: + "authServerUrl" in environment + ? (environment.authServerUrl as string) + : environment.authUrl, realm: environment.realm, clientId: environment.clientId, });