Add missing SSO options to config

Fixes #1452
This commit is contained in:
ShahanaFarooqui 2024-11-05 13:30:30 -08:00
parent fc9150f923
commit 408cfa1d31
4 changed files with 6 additions and 4 deletions

View file

@ -395,7 +395,8 @@ export class CommonService {
}
});
};
this.readCookie = () => {
this.readCookie = (config) => {
this.appConfig.SSO = config.SSO;
const exists = fs.existsSync(this.appConfig.SSO.rtlCookiePath);
if (exists) {
try {

View file

@ -343,7 +343,7 @@ export class ConfigService {
this.errMsg = 'Please set rtlCookiePath value for single sign on option!';
}
else {
this.common.readCookie();
this.common.readCookie(config);
}
}
};

View file

@ -413,7 +413,8 @@ export class CommonService {
});
};
public readCookie = () => {
public readCookie = (config) => {
this.appConfig.SSO = config.SSO;
const exists = fs.existsSync(this.appConfig.SSO.rtlCookiePath);
if (exists) {
try {

View file

@ -321,7 +321,7 @@ export class ConfigService {
if (!config.SSO.rtlCookiePath || config.SSO.rtlCookiePath.trim() === '') {
this.errMsg = 'Please set rtlCookiePath value for single sign on option!';
} else {
this.common.readCookie();
this.common.readCookie(config);
}
}
};