Skip to content

Commit

Permalink
chore: allow to change oidc configuration of container
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Feb 12, 2024
1 parent 2fdcd38 commit 13ff344
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ember/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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') {
Expand All @@ -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;
Expand Down

0 comments on commit 13ff344

Please sign in to comment.