Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmailNotAllowed = errors.New("required email domain not fulfilled") ErrInvalidCredentials = errors.New("invalid username or password") ErrNoEmail = errors.New("login provider didn't return an email address") ErrProviderDeniedRequest = errors.New("login provider denied login request") ErrTooManyLoginAttempts = errors.New("too many consecutive incorrect login attempts for user - login for user temporarily blocked") ErrPasswordEmpty = errors.New("no password provided") ErrUserDisabled = errors.New("user is disabled") ErrAbsoluteRedirectTo = errors.New("absolute URLs are not allowed for redirect_to cookie value") ErrInvalidRedirectTo = errors.New("invalid redirect_to cookie value") ErrForbiddenRedirectTo = errors.New("forbidden redirect_to cookie value") ErrNoAuthProvider = errors.New("enable at least one login provider") )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
AuthenticateUser(context.Context, *models.LoginUserQuery) error
}
type AuthenticatorService ¶
type AuthenticatorService struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(loginService login.Service, loginAttemptService loginattempt.Service, userService user.Service) *AuthenticatorService
Click to show internal directories.
Click to hide internal directories.