From: Fiete Ostkamp Date: Tue, 1 Apr 2025 09:57:56 +0000 (+0200) Subject: Fix keycloak url substitution X-Git-Tag: 0.1.3^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=29b42f7c770f10fd2895fcce6511a1e7fe77d435;p=portal-ng%2Fui.git Fix keycloak url substitution - adjust substitution pattern to work with the ingress url - use updated node-build-action to resolve pipeline failure caused by omitting the installation of dev dependencies Issue-ID: PORTALNG-134 Change-Id: I8fa2b68277b72f4325ab7128c7f19c4d5ea43a3a Signed-off-by: Fiete Ostkamp --- diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 9a14f80..f5c5dcf 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -27,7 +27,7 @@ export const environment: Environment = { hostname: window.location.hostname, production: true, keycloak: { - hostname: window["env"]["keycloak"]["hostname"] || `https://${window.location.host.replace('portal', 'keycloak')}`, + hostname: window["env"]["keycloak"]["hostname"] || `${window.location.origin.replace('portal-ng', 'keycloak')}`, realm: window["env"]["keycloak"]["realm"] || 'ONAP', redirectUri: window.location.origin, // URL of the SPA to redirect the user to after login clientId: window["env"]["keycloak"]["clientId"] || 'portal-app', // The Frontend is registered with this id at the auth-server