Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
Options *auth.AuthenticatorOptions
}
Authenticator is the structure that implements auth.Authenticator as well as auth.Tokener interfaces. It is used to provide full authentication process for the
func New ¶
func New(options ...auth.AuthenticatorOption) *Authenticator
New creates new authenticator for provided options. By default it uses in-memory store for the revoked tokens.
func (*Authenticator) ComparePassword ¶
func (a *Authenticator) ComparePassword(acc auth.Account, password string) error
ComparePassword compares the password (with optional salt) hash with the provided 'password'.
func (*Authenticator) HashAndSetPassword ¶
HashAndSetPassword implements auth.PasswordHasher interface.
Click to show internal directories.
Click to hide internal directories.