fix: split generic scopes string to array

This commit is contained in:
Stavros
2025-01-25 10:25:20 +02:00
parent 96a373a794
commit c7ec788ce1
4 changed files with 7 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ var rootCmd = &cobra.Command{
HandleError(parseErr, "Failed to parse users")
// Create whitelist
whitelist := utils.ParseWhitelist(config.Whitelist)
whitelist := utils.ParseCommaString(config.Whitelist)
// Create OAuth config
oauthConfig := types.OAuthConfig{
@@ -67,7 +67,7 @@ var rootCmd = &cobra.Command{
GoogleClientSecret: config.GoogleClientSecret,
GenericClientId: config.GenericClientId,
GenericClientSecret: config.GenericClientSecret,
GenericScopes: config.GenericScopes,
GenericScopes: utils.ParseCommaString(config.GenericScopes),
GenericAuthURL: config.GenericAuthURL,
GenericTokenURL: config.GenericTokenURL,
GenericUserURL: config.GenericUserURL,