Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyUserAuthenticator ¶
type AnyUserAuthenticator struct{}
AnyUserAuthenticator is an authenticator that can be used in tests to allow for test users to be added to the context. The user name used is from the Basic auth of the http request.
func (*AnyUserAuthenticator) AuthenticateRequest ¶
AuthenticateRequest gets the user name from the Basic auth. If there is no basic auth or it is not valid for any reason, then an empty username is used.
Click to show internal directories.
Click to hide internal directories.