diff --git a/components/server/src/config.ts b/components/server/src/config.ts index 818d668ad29044..ce350ae794528a 100644 --- a/components/server/src/config.ts +++ b/components/server/src/config.ts @@ -181,18 +181,14 @@ export namespace ConfigFile { const rawProviderConfigFiles = config.authProviderConfigFiles if (rawProviderConfigFiles) { /* Add providers from files */ - const authProviderConfigFiles: AuthProviderParams[] = [] - rawProviderConfigFiles.map((providerFile) => { - console.log({providerFile}) + const authProviderConfigFiles: AuthProviderParams[] = rawProviderConfigFiles.map((providerFile) => { const rawProviderData = fs.readFileSync(providerFile, "utf-8") - console.log({rawProviderData}) - console.log(yaml.load(rawProviderData)) return yaml.load(rawProviderData) as AuthProviderParams - }) + }); + authProviderConfigs.push(...authProviderConfigFiles); } - console.log({authProviderConfigs }) authProviderConfigs = normalizeAuthProviderParams(authProviderConfigs) const builtinAuthProvidersConfigured = authProviderConfigs.length > 0;