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 (a *AllowAllAuthenticator) Authenticate(r *http.Request, w http.ResponseWriter) (AuthResult, string)
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 (a *HtpasswdAuthenticator) Authenticate(r *http.Request, w http.ResponseWriter) (AuthResult, string)
func (*HtpasswdAuthenticator) Load ¶
func (a *HtpasswdAuthenticator) Load(configFile string) (err error)
type RadiusAuthenticator ¶
func (*RadiusAuthenticator) Authenticate ¶
func (a *RadiusAuthenticator) Authenticate(r *http.Request, w http.ResponseWriter) (AuthResult, string)
func (*RadiusAuthenticator) Load ¶
func (a *RadiusAuthenticator) Load(configFile string) error
Click to show internal directories.
Click to hide internal directories.