From 13ff344de5a0e31307b5615012c1b0f3439e2e82 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Mon, 12 Feb 2024 14:36:04 +0100 Subject: [PATCH] chore: allow to change oidc configuration of container --- ember/config/environment.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ember/config/environment.js b/ember/config/environment.js index b3976a5b..d7f5c876 100644 --- a/ember/config/environment.js +++ b/ember/config/environment.js @@ -7,8 +7,6 @@ module.exports = function (environment) { rootURL: '/', locationType: 'history', 'ember-simple-auth-oidc': { - host: 'https://outdated.local/auth/realms/outdated/protocol/openid-connect', - clientId: 'outdated', authEndpoint: '/auth', tokenEndpoint: '/token', userinfoEndpoint: '/userinfo', @@ -38,6 +36,9 @@ module.exports = function (environment) { // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; // ENV.APP.LOG_VIEW_LOOKUPS = true; + ENV['ember-simple-auth-oidc'].host = + 'https://outdated.local/auth/realms/outdated/protocol/openid-connect'; + ENV['ember-simple-auth-oidc'].clientId = 'outdated'; } if (environment === 'test') { @@ -54,6 +55,8 @@ module.exports = function (environment) { if (environment === 'production') { // here you can enable a production-specific feature + ENV['ember-simple-auth-oidc'].host = 'oidc-client-host'; + ENV['ember-simple-auth-oidc'].clientId = 'oidc-client-id'; } return ENV;