1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-06 08:59:21 +02:00

Move AllowedGroups to DefaultProvider for default Authorize usage

This commit is contained in:
Nick Meves
2020-09-26 19:00:44 -07:00
parent e7ac793044
commit eb58ea2ed9
6 changed files with 88 additions and 39 deletions

View File

@@ -233,6 +233,8 @@ func parseProviderInfo(o *options.Options, msgs []string) []string {
p.ValidateURL, msgs = parseURL(o.ValidateURL, "validate", msgs)
p.ProtectedResource, msgs = parseURL(o.ProtectedResource, "resource", msgs)
p.SetAllowedGroups(o.AllowedGroups)
provider := providers.New(o.ProviderType, p)
if provider == nil {
msgs = append(msgs, fmt.Sprintf("invalid setting: provider '%s' is not available", o.ProviderType))