made permissive default to true
This commit is contained in:
parent
0a5b59aa0b
commit
744cecf61d
@ -265,8 +265,8 @@ func WithErrorHandler(opt ErrorHandler) Option {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WithPermissive allows incoming requests to pass even if the client does not provide a token.
|
// WithPermissive allows incoming requests to pass even if the client does not provide a token.
|
||||||
func WithPermissive(opt bool) Option {
|
func WithPermissive() Option {
|
||||||
return func(opts *Options) {
|
return func(opts *Options) {
|
||||||
opts.Permissive = opt
|
opts.Permissive = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user