Update preemtiveAuthorizer documentation
This commit is contained in:
parent
9c049da1f7
commit
b601d4bcbf
2
auth.go
2
auth.go
@ -399,7 +399,7 @@ func (b *preemptiveAuthorizer) NewAuthenticator(body io.Reader) (Authenticator,
|
|||||||
return b.auth.Clone(), body
|
return b.auth.Clone(), body
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddAuthenticator A preemptive authorizer may only have a single authentication method
|
// AddAuthenticator Will PANIC because it may only have a single authentication method
|
||||||
func (b *preemptiveAuthorizer) AddAuthenticator(key string, fn AuthFactory) {
|
func (b *preemptiveAuthorizer) AddAuthenticator(key string, fn AuthFactory) {
|
||||||
panic("You're funny! A preemptive authorizer may only have a single authentication method")
|
panic("You're funny! A preemptive authorizer may only have a single authentication method")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user