parent
1cf5d23118
commit
8aa816c38e
1 changed files with 3 additions and 3 deletions
|
|
@ -371,10 +371,10 @@ export class InfraConfigService implements OnModuleInit {
|
|||
* @returns Either true or an error
|
||||
*/
|
||||
async enableAndDisableSSO(providerInfo: EnableAndDisableSSOArgs[]) {
|
||||
const allowedAuthProviders = this.configService
|
||||
.get<string>('INFRA.VITE_ALLOWED_AUTH_PROVIDERS')
|
||||
.split(',');
|
||||
const infra = await this.get(InfraConfigEnum.VITE_ALLOWED_AUTH_PROVIDERS);
|
||||
if (E.isLeft(infra)) return E.left(infra.left);
|
||||
|
||||
const allowedAuthProviders = infra.right.value.split(',');
|
||||
let updatedAuthProviders = allowedAuthProviders;
|
||||
|
||||
const infraConfigMap = await this.getInfraConfigsMap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue