1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-07-15 01:44:22 +02:00

Update options

This commit is contained in:
Joel Speed
2022-04-24 18:43:38 +01:00
parent 9b5d1e4224
commit f403c696de
2 changed files with 7 additions and 2 deletions

View File

@ -30,8 +30,12 @@ type Authorization struct {
// AuthorizationRule determines the configuration for a particular authorization
// rule.
type AuthorizationRule struct {
// ID is a unique identifier for the authorization rule. Each authorization
// rule is expected to have a unique ID.
// The ID will be used to identify matched rules for audit purposes.
ID string
// Policy is the authorization policy to apply should the rule match the given
// request.
// All conditions specified within the rule must match the request for the

View File

@ -48,7 +48,8 @@ type Options struct {
Server Server `cfg:",internal"`
MetricsServer Server `cfg:",internal"`
Providers Providers `cfg:",internal"`
Authorization Authorization `cfg:",internal"`
Providers Providers `cfg:",internal"`
SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
SkipAuthRoutes []string `flag:"skip-auth-route" cfg:"skip_auth_routes"`