Skip to content

Commit

Permalink
try login-required
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 15, 2024
1 parent 11fe6e5 commit 536f437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/public/silent-check-sso.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<body>
<script>
parent.postMessage(location.href, '*');
parent.postMessage(location.href, location.origin);
</script>
</body>
</html>
7 changes: 4 additions & 3 deletions webapp/src/app/core/security/keycloak.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export class KeycloakService {

async init() {
const authenticated = await this.keycloak.init({
onLoad: 'check-sso',
silentCheckSsoRedirectUri: window.location.origin + '/silent-check-sso.html',
silentCheckSsoFallback: false
onLoad: 'login-required'
// onLoad: 'check-sso',
// silentCheckSsoRedirectUri: window.location.origin + '/silent-check-sso.html',
// silentCheckSsoFallback: false
});

if (!authenticated) {
Expand Down

0 comments on commit 536f437

Please sign in to comment.