Commit 5d0ac4bd authored by François Agneray's avatar François Agneray
Browse files

Updated silent check sso to work with base href

parent dcd50093
......@@ -16,6 +16,12 @@ function initializeKeycloak(keycloak: KeycloakService, store: Store<{ keycloak:
}
})
let silentCheckSsoRedirectUri = window.location.origin;
if (environment.baseHref != '/') {
silentCheckSsoRedirectUri += environment.baseHref;
}
silentCheckSsoRedirectUri += '/assets/silent-check-sso.html';
return keycloak.init({
config: {
url: environment.ssoAuthUrl,
......@@ -24,8 +30,7 @@ function initializeKeycloak(keycloak: KeycloakService, store: Store<{ keycloak:
},
initOptions: {
onLoad: 'check-sso',
silentCheckSsoRedirectUri:
window.location.origin + '/assets/silent-check-sso.html'
silentCheckSsoRedirectUri
},
loadUserProfileAtStartUp: true
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment