authenticators

package
Version: v0.0.0-...-719b496 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 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 Each user has a set of ACLs that are applied to the generated token, ACL strings have to comply with the signer you choose, refer to signer documentation for details.
Package userlist provide a static configuration based authentication system Each user has a set of ACLs that are applied to the generated token, ACL strings have to comply with the signer you choose, refer to signer documentation for details.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL