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") ErrSignUpNotAllowed = errors.New("Signup is not allowed for this adapter") 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") )
Functions ¶
func AuthenticateUser ¶
func AuthenticateUser(query *models.LoginUserQuery) error
AuthenticateUser authenticates the user via username & password
func DisableExternalUser ¶
DisableExternalUser marks external user as disabled in Grafana db
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.