Documentation
¶
Overview ¶
Package basic contains logic for setting up a basic authenticator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(storage storage.Credentials, encrypter security.Encrypter) security.Authenticator
NewAuthenticator constructs a Basic authentication Authenticator
Types ¶
type Authenticator ¶
type Authenticator struct {
CredentialStorage storage.Credentials
Encrypter security.Encrypter
}
Authenticator for basic security
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(request *http.Request) (*web.User, security.AuthenticationDecision, error)
Authenticate authenticates by using the provided Basic credentials
Click to show internal directories.
Click to hide internal directories.