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
}
func NewAuthenticator ¶
func NewAuthenticator(dataDir string, logger log.Logger, tokenManager jwt.TokenManager[User]) (*Authenticator, error)
func (Authenticator) AddUser ¶
func (a Authenticator) AddUser(username, passphrase, masterKey string) (string, error)
func (Authenticator) Authenticate ¶
func (a Authenticator) Authenticate(username, passphrase string) (string, error)
func (Authenticator) ValidateToken ¶
func (a Authenticator) ValidateToken(token string) (User, error)
Click to show internal directories.
Click to hide internal directories.