add With method for allowed URL options on delegated authorization
This commit is contained in:
@@ -75,6 +75,12 @@ func (s *DelegatingAuthorizationOptions) WithAlwaysAllowGroups(groups ...string)
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithAlwaysAllowPaths appends the list of paths to AlwaysAllowPaths
|
||||||
|
func (s *DelegatingAuthorizationOptions) WithAlwaysAllowPaths(paths ...string) *DelegatingAuthorizationOptions {
|
||||||
|
s.AlwaysAllowPaths = append(s.AlwaysAllowPaths, paths...)
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
func (s *DelegatingAuthorizationOptions) Validate() []error {
|
func (s *DelegatingAuthorizationOptions) Validate() []error {
|
||||||
allErrors := []error{}
|
allErrors := []error{}
|
||||||
return allErrors
|
return allErrors
|
||||||
|
Reference in New Issue
Block a user