Update preemtiveAuthorizer documentation

This commit is contained in:
Christoph Polcin 2023-06-07 20:16:09 +02:00 committed by Christoph Polcin
parent 9c049da1f7
commit b601d4bcbf

View File

@ -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")
} }