Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPasswordAuthenticatorWithConfig ¶
func NewPasswordAuthenticatorWithConfig(config auth.Config) (auth.PasswordAuthenticator, error)
NewPasswordAuthenticatorWithConfig creates a new password authenticator with a configuration.
Types ¶
type PasswordAuthenticator ¶
type PasswordAuthenticator struct {
// contains filtered or unexported fields
}
PasswordAuthenticator is a password authenticator.
func (*PasswordAuthenticator) AuthenticatePassword ¶
func (authenticator *PasswordAuthenticator) AuthenticatePassword(conn auth.Conn, username string, password string) (bool, error)
AuthenticatePassword authenticates a user with a password.
func (*PasswordAuthenticator) Password ¶
func (authenticator *PasswordAuthenticator) Password() string
Password returns the authorized password.
func (*PasswordAuthenticator) User ¶
func (authenticator *PasswordAuthenticator) User() string
User returns the authorized user.
type Service ¶
type Service interface { auth.Service auth.PasswordAuthenticatorService }
Service is a password authentication service.
type ServiceImpl ¶
type ServiceImpl struct {
*plugins.BaseService
}
Service is a password authentication service.
func (*ServiceImpl) CreatePasswordAuthenticatorWithConfig ¶
func (service *ServiceImpl) CreatePasswordAuthenticatorWithConfig(config auth.Config) (auth.PasswordAuthenticator, error)
CreatePasswordAuthenticatorWithConfig creates a new password authenticator with a configuration.
func (*ServiceImpl) ServiceName ¶
func (service *ServiceImpl) ServiceName() string
ServiceName returns the service name.
Click to show internal directories.
Click to hide internal directories.