Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCredentials = errors.New("auth: invalid username")
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type JsonAuthenticator ¶
type JsonAuthenticator struct {
// contains filtered or unexported fields
}
func NewJson ¶
func NewJson(usersPath string) (*JsonAuthenticator, error)
func (*JsonAuthenticator) Authenticate ¶
func (j *JsonAuthenticator) Authenticate(username, password string) error
Click to show internal directories.
Click to hide internal directories.