Fix angular-product example

This commit is contained in:
mposolda 2014-05-28 23:30:34 +02:00
parent 5ede17d8b8
commit db939ee076

View file

@ -13,7 +13,7 @@ angular.element(document).ready(function ($http) {
var keycloakAuth = new Keycloak('keycloak.json'); var keycloakAuth = new Keycloak('keycloak.json');
auth.loggedIn = false; auth.loggedIn = false;
keycloakAuth.init('login-required').success(function () { keycloakAuth.init({ onLoad: 'login-required' }).success(function () {
auth.loggedIn = true; auth.loggedIn = true;
auth.authz = keycloakAuth; auth.authz = keycloakAuth;
auth.logoutUrl = keycloakAuth.authServerUrl + "/realms/demo/tokens/logout?redirect_uri=http://localhost:8080/angular-product/index.html"; auth.logoutUrl = keycloakAuth.authServerUrl + "/realms/demo/tokens/logout?redirect_uri=http://localhost:8080/angular-product/index.html";