Commit 2e72f88f authored by François Agneray's avatar François Agneray

Updated silent check sso to work with base href

parent 8e4d254c
Pipeline #4085 passed with stages
in 11 minutes and 54 seconds
......@@ -34,6 +34,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,
......@@ -42,8 +48,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