From 17be3065a62a56b6897a2d008628fc20118f8b14 Mon Sep 17 00:00:00 2001 From: Dennis Smith Date: Wed, 14 Aug 2024 16:50:57 -0400 Subject: [PATCH] fix silent-check-sso.html path --- src/userService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/userService.ts b/src/userService.ts index 27c9cefd..2183e4d9 100644 --- a/src/userService.ts +++ b/src/userService.ts @@ -6,12 +6,14 @@ const _kc = new Keycloak({ clientId: import.meta.env.VITE_KC_CLIENT_ID, }); +const basePath = import.meta.env.VITE_URL_BASE_PATH ?? '' + export const initKeycloak = (renderAppCallback = () => {}) => { _kc .init({ onLoad: 'check-sso', silentCheckSsoRedirectUri: - window.location.origin + '/silent-check-sso.html', + `${window.location.origin}${basePath}/silent-check-sso.html`, pkceMethod: 'S256', adapter: 'default', })