Use authServerUrl instead of authUrl to initialize Keycloak client (#2704)

This commit is contained in:
Thomas Darimont 2022-05-27 11:45:06 +02:00 committed by GitHub
parent 422c271da3
commit 876d705025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}