Add Oauth Server as variables (#2224)

This commit is contained in:
Víctor Romero
2024-12-19 15:28:22 -06:00
committed by GitHub
parent bf1d99f494
commit a21bd622e7
8 changed files with 97 additions and 22 deletions
+5 -3
View File
@@ -13,13 +13,15 @@ export const environment = {
'https://dev.mifos.io,https://demo.mifos.io,https://qa.mifos.io,https://staging.mifos.io,https://mobile.mifos.io,https://demo.fineract.dev,https://localhost:8443',
// For connecting to server running elsewhere set the base API URL
baseApiUrl: window['env']['fineractApiUrl'] || window.location.protocol + '//' + window.location.hostname,
oauthServerUrl: window['env']['oauthServerUrl'] || window['env']['fineractApiUrl'] + window['env']['apiProvider'],
allowServerSwitch: env.allow_switching_backend_instance,
apiProvider: window['env']['apiProvider'] || '/fineract-provider/api',
apiVersion: window['env']['apiVersion'] || '/v1',
serverUrl: '',
oauth: {
enabled: false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
serverUrl: ''
enabled: window['env']['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
serverUrl: window['env']['oauthServerUrl'] || '',
appId: window['env']['oauthAppId'] || ''
},
warningDialog: {
title: 'Warning',
@@ -47,4 +49,4 @@ export const environment = {
// Server URL
environment.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}${environment.apiVersion}`;
environment.oauth.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}`;
+4 -3
View File
@@ -24,8 +24,9 @@ export const environment = {
apiVersion: window['env']['apiVersion'] || '/v1',
serverUrl: '',
oauth: {
enabled: false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
serverUrl: ''
enabled: window['env']['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
serverUrl: window['env']['oauthServerUrl'] || '',
appId: window['env']['oauthAppId'] || ''
},
warningDialog: {
title: 'Warning',
@@ -53,4 +54,4 @@ export const environment = {
// Server URL
environment.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}${environment.apiVersion}`;
environment.oauth.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}`;