Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCtr = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "choria_aaa_authenticator_errors", Help: "Total number of authentication requests that failed", }, []string{"site", "authenticator"}) ProcessTime = prometheus.NewSummaryVec(prometheus.SummaryOpts{ Name: "choria_aaa_authenticator_time", Help: "Time taken to handle logins", }, []string{"site", "authenticator"}) )
Functions ¶
func LoginHandler ¶
func LoginHandler(params operations.PostLoginParams) middleware.Responder
LoginHandler is a HTTP middleware handler for performing logins using the configured authenticator
func SetAuthenticator ¶
func SetAuthenticator(a Authenticator)
SetAuthenticator sets the authenticator to use
Types ¶
type Authenticator ¶
type Authenticator interface {
Login(*models.LoginRequest) *models.LoginResponse
}
Authenticator providers user authentication
Click to show internal directories.
Click to hide internal directories.