Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnauthenticated = errors.New("unauthenticated")
ErrUnauthenticated defines the basic unauthenticated error.
Functions ¶
Types ¶
type Method ¶
type Method interface { // Authenticate parses an API request and returns a user. If a user cannot authenticated it must // return an ErrUnauthenticated compatible error. Authenticate(*http.Request) (*api.User, error) // Close may release all resources held by the Method implementation. Close() error }
Method implementations are responsible for authenticating users from HTTP requests.
Click to show internal directories.
Click to hide internal directories.