Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms authored and Simon Emms committed Dec 10, 2021
1 parent 4c1eb54 commit 31a4cda
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions components/server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,14 @@ export namespace ConfigFile {
const rawProviderConfigFiles = config.authProviderConfigFiles
if (rawProviderConfigFiles) {
/* Add providers from files */
const authProviderConfigFiles: AuthProviderParams[] = []
rawProviderConfigFiles.map<AuthProviderParams>((providerFile) => {
console.log({providerFile})
const authProviderConfigFiles: AuthProviderParams[] = rawProviderConfigFiles.map<AuthProviderParams>((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;
Expand Down

0 comments on commit 31a4cda

Please sign in to comment.