Skip to content
Snippets Groups Projects
Commit 41c81b98 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4321 remove deprecated config

parent 20a69358
No related branches found
No related tags found
No related merge requests found
import { Environment } from '@alfa-client/environment-shared';
import { KeycloakService } from 'keycloak-angular';
export function initializeKeycloak(keycloak: KeycloakService, envConfig: Environment) {
return () =>
keycloak.init({
config: {
url: envConfig.authServer,
realm: envConfig.realm,
clientId: envConfig.clientId,
},
initOptions: {
adapter: 'default',
checkLoginIframe: false,
enableLogging: true,
scope: 'offline_access',
onLoad: 'login-required',
silentCheckSsoRedirectUri: window.location.origin + '/assets/silent-check-sso.html',
silentCheckSsoFallback: true,
},
updateMinValidity: 1,
bearerExcludedUrls: ['/assets', '/clients/public'],
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment