Documentation ¶
Index ¶
- Variables
- type Auth
- func (a *Auth) Authenticate(next http.Handler) http.Handler
- func (a *Auth) AuthenticateHandler(next http.Handler) func(w http.ResponseWriter, r *http.Request, vars map[string]string)
- func (a *Auth) BasicAuth(r *http.Request, appID string) error
- func (a *Auth) CheckAuth(r *http.Request, appID string) error
- func (a *Auth) XFCCAuth(r *http.Request, appID string) error
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) AuthenticateHandler ¶
Click to show internal directories.
Click to hide internal directories.