You've already forked oauth2-proxy
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:
@ -30,8 +30,12 @@ type Authorization struct {
|
|||||||
|
|
||||||
// AuthorizationRule determines the configuration for a particular authorization
|
// AuthorizationRule determines the configuration for a particular authorization
|
||||||
// rule.
|
// rule.
|
||||||
|
|
||||||
type AuthorizationRule struct {
|
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
|
// Policy is the authorization policy to apply should the rule match the given
|
||||||
// request.
|
// request.
|
||||||
// All conditions specified within the rule must match the request for the
|
// All conditions specified within the rule must match the request for the
|
||||||
|
@ -48,7 +48,8 @@ type Options struct {
|
|||||||
Server Server `cfg:",internal"`
|
Server Server `cfg:",internal"`
|
||||||
MetricsServer 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"`
|
SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
|
||||||
SkipAuthRoutes []string `flag:"skip-auth-route" cfg:"skip_auth_routes"`
|
SkipAuthRoutes []string `flag:"skip-auth-route" cfg:"skip_auth_routes"`
|
||||||
|
Reference in New Issue
Block a user