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 5c2178a commit 4c1eb54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,16 @@ export namespace ConfigFile {
/* Add providers from files */
const authProviderConfigFiles: AuthProviderParams[] = []
rawProviderConfigFiles.map<AuthProviderParams>((providerFile) => {
console.log({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 4c1eb54

Please sign in to comment.