Fix the method name of BuiltInAuthenticationOptions
change the BuiltInAuthenticationOptions.WithAnyonymous to WithAnonymous would be better.
This commit is contained in:
@@ -88,7 +88,7 @@ func NewBuiltInAuthenticationOptions() *BuiltInAuthenticationOptions {
|
|||||||
|
|
||||||
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
||||||
return s.
|
return s.
|
||||||
WithAnyonymous().
|
WithAnonymous().
|
||||||
WithBootstrapToken().
|
WithBootstrapToken().
|
||||||
WithClientCert().
|
WithClientCert().
|
||||||
WithKeystone().
|
WithKeystone().
|
||||||
@@ -100,7 +100,7 @@ func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
|
|||||||
WithWebHook()
|
WithWebHook()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *BuiltInAuthenticationOptions) WithAnyonymous() *BuiltInAuthenticationOptions {
|
func (s *BuiltInAuthenticationOptions) WithAnonymous() *BuiltInAuthenticationOptions {
|
||||||
s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
|
s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user