allow customizing OICD scopes

This commit is contained in:
yusing
2025-01-13 08:30:46 +08:00
parent 76fe5345d8
commit 81d96394b9
3 changed files with 6 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ var (
OIDCClientID = GetEnvString("OIDC_CLIENT_ID", "")
OIDCClientSecret = GetEnvString("OIDC_CLIENT_SECRET", "")
OIDCRedirectURL = GetEnvString("OIDC_REDIRECT_URL", "")
OIDCScopes = GetEnvString("OIDC_SCOPES", "openid, profile, email")
)
func GetEnv[T any](key string, defaultValue T, parser func(string) (T, error)) T {