From 876d70502577deabce0f4d72a15a0528c5b3707f Mon Sep 17 00:00:00 2001 From: Thomas Darimont Date: Fri, 27 May 2022 11:45:06 +0200 Subject: [PATCH] Use authServerUrl instead of authUrl to initialize Keycloak client (#2704) --- src/context/auth/AdminClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/auth/AdminClient.tsx b/src/context/auth/AdminClient.tsx index e98b8ec676..376605bfd8 100644 --- a/src/context/auth/AdminClient.tsx +++ b/src/context/auth/AdminClient.tsx @@ -70,7 +70,7 @@ export async function initAdminClient() { await kcAdminClient.init( { onLoad: "check-sso", pkceMethod: "S256" }, { - url: environment.authUrl, + url: environment.authServerUrl, realm: environment.loginRealm, clientId: environment.isRunningAsTheme ? "security-admin-console" @@ -79,7 +79,7 @@ export async function initAdminClient() { ); kcAdminClient.setConfig({ realmName: environment.loginRealm }); - kcAdminClient.baseUrl = environment.authUrl; + kcAdminClient.baseUrl = environment.authServerUrl; return kcAdminClient; }