From 2f7fb11b3a880eda5cdd5e8141f1a369643b246a Mon Sep 17 00:00:00 2001 From: Haritz Puerto Date: Tue, 28 Feb 2023 22:00:31 +0100 Subject: [PATCH] keycloack working in local deployment --- frontend/src/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index d87b2a7a1..aa63a4be4 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -19,14 +19,13 @@ let initOptions = { } let keycloak = Keycloak(initOptions) keycloak.init({ - onLoad: initOptions.onLoad, - silentCheckSsoRedirectUri: initOptions.silentCheckSsoRedirectUri, + checkLoginIframe: false, }).then((authenticated) => { if (process.env.VUE_APP_AUTH_TOKEN !== '') { keycloak.authenticated = true authenticated = true keycloak.token = process.env.VUE_APP_AUTH_TOKEN - store.dispatch('signIn', { userInfo: {'preferred_username': 'LOCAL_SQUARE_USER'}, token: process.env.VUE_APP_AUTH_TOKEN }) + store.dispatch('signIn', { userInfo: { 'preferred_username': 'LOCAL_SQUARE_USER' }, token: process.env.VUE_APP_AUTH_TOKEN }) } else if (authenticated) { keycloak.loadUserInfo().then(userInfo => { store.dispatch('signIn', { userInfo: userInfo, token: keycloak.token })