auth

package
v0.0.0-...-81a4f0c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCAFileEmpty = errors.New("CA file empty")
View Source
var ErrXFCCHeaderNotFound = errors.New("mTLS authentication method not found")
View Source
var ErrorAppIDWrong = errors.New("app id in certificate is not valid")
View Source
var ErrorAuthNotFound = errors.New("authentication method not found")
View Source
var ErrorNoAppIDFound = errors.New("certificate does not contain an app id")

Functions

This section is empty.

Types

type Auth

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

func New

func New(logger lager.Logger, credentials cred_helper.Credentials) (*Auth, error)

func (*Auth) Authenticate

func (a *Auth) Authenticate(next http.Handler) http.Handler

func (*Auth) AuthenticateHandler

func (a *Auth) AuthenticateHandler(next http.Handler) func(w http.ResponseWriter, r *http.Request, vars map[string]string)

func (*Auth) BasicAuth

func (a *Auth) BasicAuth(r *http.Request, appID string) error

func (*Auth) CheckAuth

func (a *Auth) CheckAuth(r *http.Request, appID string) error

func (*Auth) XFCCAuth

func (a *Auth) XFCCAuth(r *http.Request, appID string) error

Jump to

Keyboard shortcuts

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