Fix the method name of BuiltInAuthenticationOptions

change the BuiltInAuthenticationOptions.WithAnyonymous to
WithAnonymous would be better.
pull/6/head
zhangyujun 2017-08-11 10:54:23 +08:00
parent a227c1ea2c
commit 4355d7014d
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ func NewBuiltInAuthenticationOptions() *BuiltInAuthenticationOptions {
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
return s.
WithAnyonymous().
WithAnonymous().
WithBootstrapToken().
WithClientCert().
WithKeystone().
@ -100,7 +100,7 @@ func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
WithWebHook()
}
func (s *BuiltInAuthenticationOptions) WithAnyonymous() *BuiltInAuthenticationOptions {
func (s *BuiltInAuthenticationOptions) WithAnonymous() *BuiltInAuthenticationOptions {
s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
return s
}