authenticators

package
v0.0.0-...-c8ab9f9 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowAllAuthenticator

type AllowAllAuthenticator struct {
}

func (*AllowAllAuthenticator) Authenticate

func (*AllowAllAuthenticator) Load

func (a *AllowAllAuthenticator) Load(configFile string) error

type AuthResult

type AuthResult int
const (
	AuthOk            AuthResult = iota // Authentication succeeded
	AuthFailedDefault                   // Authentication failed, provide default error
	AuthFailedCustom                    // Authentication failed, custom response from authenticator
)

type Authenticator

type Authenticator interface {
	Load(configFile string) error
	Authenticate(r *http.Request, w http.ResponseWriter) (AuthResult, string)
}

type HtpasswdAuthenticator

type HtpasswdAuthenticator struct {
	// contains filtered or unexported fields
}

func (*HtpasswdAuthenticator) Authenticate

func (*HtpasswdAuthenticator) Load

func (a *HtpasswdAuthenticator) Load(configFile string) (err error)

type RadiusAuthenticator

type RadiusAuthenticator struct {
	Server string `yaml:"server"`
	Secret string `yaml:"secret"`
}

func (*RadiusAuthenticator) Authenticate

func (*RadiusAuthenticator) Load

func (a *RadiusAuthenticator) Load(configFile string) error

Jump to

Keyboard shortcuts

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