Fix angular-product example
This commit is contained in:
parent
5ede17d8b8
commit
db939ee076
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue