Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthenticationFailure = errors.New("authentication failure")
ErrAuthenticationFailure indicates that the user cannot be identified with the provided information.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
Authenticate(ctx context.Context, userID string, params ...string) (*User, error)
}
Authenticator allows to check whether a user is allowed in the system or not.
Click to show internal directories.
Click to hide internal directories.