Documentation ¶
Overview ¶
Package apikey is a concrete implementation of the auth abstractions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator authenticates the request based on the header on the following header key and value: Authorization: Apikey {api key}, where {api key} is the key.
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(req *http.Request) (bool, error)
Authenticate parses the header for the specified key and authenticates it.
Click to show internal directories.
Click to hide internal directories.