added logging for kc
This commit is contained in:
parent
44ad0d6c64
commit
612a340eaa
@ -16,7 +16,7 @@ export function keycloakInitializer(keycloak: KeycloakService, appConfigService:
|
||||
url = url.replace(/\/$/, ''); // remove trailing slash
|
||||
const realm = url.substring(url.lastIndexOf('/') + 1, url.length);
|
||||
url = url.substr(0, url.lastIndexOf('/realms'));
|
||||
return keycloak.init({
|
||||
const options: any = {
|
||||
config: {
|
||||
url: url,
|
||||
realm: realm,
|
||||
@ -25,12 +25,13 @@ export function keycloakInitializer(keycloak: KeycloakService, appConfigService:
|
||||
initOptions: {
|
||||
checkLoginIframe: false,
|
||||
onLoad: 'check-sso',
|
||||
silentCheckSsoRedirectUri:
|
||||
window.location.origin + '/assets/oauth/silent-refresh.html',
|
||||
silentCheckSsoRedirectUri: window.location.origin + '/assets/oauth/silent-refresh.html',
|
||||
flow: 'standard'
|
||||
},
|
||||
enableBearerInterceptor: true
|
||||
});
|
||||
};
|
||||
console.log(options);
|
||||
return keycloak.init(options);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user