Documentation ¶
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
}
The authenticator authenticate user via http protocol.
func NewAuthenticator ¶
func NewAuthenticator(userdb *userdb.UserDatabase) (*Authenticator, error)
func (*Authenticator) Authenticate ¶
func (auth *Authenticator) Authenticate(username, password string) (*userdb.BasicUser, string, error)
Authenticate user with name and password. Returns the User object and a token.
Click to show internal directories.
Click to hide internal directories.