Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(providerName string, file string, mapper authapi.UserIdentityMapper) (authenticator.Password, error)
New returns an authenticator which will validate usernames and passwords against the given htpasswd file
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator watches a file generated by htpasswd to validate usernames and passwords
func (*Authenticator) AuthenticatePassword ¶
func (a *Authenticator) AuthenticatePassword(ctx context.Context, username, password string) (*authenticator.Response, bool, error)
Click to show internal directories.
Click to hide internal directories.