Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
anis
anis-client
Commits
2e72f88f
Commit
2e72f88f
authored
Feb 04, 2021
by
François Agneray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated silent check sso to work with base href
parent
8e4d254c
Pipeline
#4085
passed with stages
in 11 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/app/auth/init.keycloak.ts
src/app/auth/init.keycloak.ts
+7
-2
No files found.
src/app/auth/init.keycloak.ts
View file @
2e72f88f
...
...
@@ -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
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment