aboutsummaryrefslogtreecommitdiffstats
path: root/src/environments
diff options
context:
space:
mode:
Diffstat (limited to 'src/environments')
-rw-r--r--src/environments/environment.prod.ts6
-rw-r--r--src/environments/environment.ts4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts
index a533520..72d0d29 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
/*
* Copyright (c) 2022. Deutsche Telekom AG
*
@@ -27,9 +28,10 @@ export const environment: Environment = {
production: true,
keycloakEditProfile: `${window.location.origin}/auth/realms/ONAP/account`,
keycloak: {
- issuer: `${window.location.origin}/auth/realms/ONAP`, // Url of the Identity Provider
+ hostname: window["env"]["keycloak"]["hostname"] || `https://${window.location.host.replace('portal', 'keycloak')}`,
+ realm: window["env"]["keycloak"]["realm"] || 'ONAP',
redirectUri: window.location.origin, // URL of the SPA to redirect the user to after login
- clientId: 'portal-app', // The Frontend is registered with this id at the auth-server
+ clientId: window["env"]["keycloak"]["clientId"] || 'portal-app', // The Frontend is registered with this id at the auth-server
responseType: 'code',
scope: 'openid', // set the scope for the permissions the client should request
requireHttps: false, // Don't require https
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index 80d0005..9b734c6 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -29,11 +29,11 @@ import { Environment } from '../app/model/environment.model';
export const environment: Environment = {
customStyleEnabled: true,
backendServerUrl: window.location.origin + '/api',
- keycloakEditProfile: `${window.location.origin}/auth/realms/ONAP/account`,
hostname: window.location.hostname,
production: false,
keycloak: {
- issuer: `${window.location.origin}/auth/realms/ONAP`, // Url of the Identity Provider
+ hostname: window.location.origin, // Url of the Identity Provider
+ realm: 'ONAP',
redirectUri: window.location.origin, // URL of the SPA to redirect the user to after login
clientId: 'portal-app', // The Frontend is registered with this id at the auth-server
responseType: 'code',