Skip to content
Snippets Groups Projects
Commit 3ae43e63 authored by Alfredo Chissotti's avatar Alfredo Chissotti
Browse files

secured

parent 29f5ec9b
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ class Secured { ...@@ -11,7 +11,7 @@ class Secured {
body.onload = function() { body.onload = function() {
const keycloak = new Keycloak('http://localhost:3000/keycloak.json'); const keycloak = new Keycloak('http://localhost:3000/keycloak.json');
keycloak.init({ keycloak.init({
onLoad: 'login-required' // login-required will authenticate the client if the user is logged-in to Keycloak or display the login page if not. onLoad: 'login-required' // login-required will authenticate the client if the user is logged-in to Keycloak or display the login page if not.
}).then(function(authenticated) { }).then(function(authenticated) {
this.keycloak = keycloak; this.keycloak = keycloak;
this.authenticated = authenticated; this.authenticated = authenticated;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment