fix: filter oauth whitelist to remove empty strings

This commit is contained in:
Stavros
2025-02-15 17:23:24 +02:00
parent 6f35923735
commit f9ab9a6406
3 changed files with 32 additions and 1 deletions

View File

@@ -62,7 +62,9 @@ var rootCmd = &cobra.Command{
}
// Create oauth whitelist
oauthWhitelist := strings.Split(config.OAuthWhitelist, ",")
oauthWhitelist := utils.Filter(strings.Split(config.OAuthWhitelist, ","), func(val string) bool {
return val != ""
})
log.Debug().Msg("Parsed OAuth whitelist")
// Create OAuth config