From 2238d2915b7b3fea4da8e3fac0293970dfebf98a Mon Sep 17 00:00:00 2001 From: "Fergus MacConnell WLRS:EX" Date: Thu, 19 Sep 2024 09:42:32 -0700 Subject: [PATCH 1/2] Keycloak new constructor. --- app/frontend/src/common/authenticate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/common/authenticate.js b/app/frontend/src/common/authenticate.js index 9fce931d06..eba2da4817 100644 --- a/app/frontend/src/common/authenticate.js +++ b/app/frontend/src/common/authenticate.js @@ -33,7 +33,7 @@ export default { const keyCloakScript = document.createElement('script') keyCloakScript.onload = () => { // Construct the Keycloak object and resolve the promise. - Vue.prototype.$keycloak = window.Keycloak(response.data) + Vue.prototype.$keycloak = new Keycloak(response.data) resolve(Vue.prototype.$keycloak) } keyCloakScript.onerror = (e) => { From 87c14461de0fc2621b6d4cfb0137b481e64c0ac5 Mon Sep 17 00:00:00 2001 From: "Fergus MacConnell WLRS:EX" Date: Thu, 19 Sep 2024 09:42:32 -0700 Subject: [PATCH 2/2] Keycloak new constructor.