authenticators

package
v0.0.0-...-6c3212e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis
Package userlist provide a static configuration based authentication system
Package userlist provide a static configuration based authentication system

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL