Fix keycloak url substitution 36/140636/4 0.1.3
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 1 Apr 2025 09:57:56 +0000 (11:57 +0200)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Thu, 3 Apr 2025 13:18:00 +0000 (13:18 +0000)
- 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 <Fiete.Ostkamp@telekom.de>
src/environments/environment.prod.ts

index 9a14f80..f5c5dcf 100644 (file)
@@ -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