From db939ee076f6ac1d2181804cd368cf0dc9580227 Mon Sep 17 00:00:00 2001 From: mposolda Date: Wed, 28 May 2014 23:30:34 +0200 Subject: [PATCH] Fix angular-product example --- .../demo-template/angular-product-app/src/main/webapp/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo-template/angular-product-app/src/main/webapp/js/app.js b/examples/demo-template/angular-product-app/src/main/webapp/js/app.js index 58dd2c7159..7062c41f7a 100755 --- a/examples/demo-template/angular-product-app/src/main/webapp/js/app.js +++ b/examples/demo-template/angular-product-app/src/main/webapp/js/app.js @@ -13,7 +13,7 @@ angular.element(document).ready(function ($http) { var keycloakAuth = new Keycloak('keycloak.json'); auth.loggedIn = false; - keycloakAuth.init('login-required').success(function () { + keycloakAuth.init({ onLoad: 'login-required' }).success(function () { auth.loggedIn = true; auth.authz = keycloakAuth; auth.logoutUrl = keycloakAuth.authServerUrl + "/realms/demo/tokens/logout?redirect_uri=http://localhost:8080/angular-product/index.html";