Skip to content

Instantly share code, notes, and snippets.

@jdc18
Created June 22, 2015 21:46
Show Gist options
  • Save jdc18/6648d92c6858b66cec3d to your computer and use it in GitHub Desktop.
Save jdc18/6648d92c6858b66cec3d to your computer and use it in GitHub Desktop.
keycloakAuth.init().success(function(authenticated) {
if(authenticated ){
auth.loggedIn = true;
auth.authz = keycloakAuth;
}else{
auth.loggedIn = false;
}
console.log('Init Autenticado ' +auth.loggedIn );
}).error(function() {
console.log('failed to initialize');
auth.loggedIn = false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment