Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMalformedAuth occurs when authorization content is malformed ErrMalformedAuth = errors.New("malformed authorization content") ErrUnavailableService = errors.New("unavailable ident service") // ErrInvalidCredentials occurs when credentials failed ErrInvalidCredentials = errors.New("invalid credentials") )
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // IsMatching checks if header content match provider IsMatching(string) bool // GetUser returns User found in content header GetUser(context.Context, string) (model.User, error) // OnError handles HTTP request when login fails OnError(http.ResponseWriter, *http.Request, error) }
Provider provides methods for dealing with identification
Click to show internal directories.
Click to hide internal directories.