Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Type string `json:"type,omitempty"` // contains filtered or unexported fields }
Backend is an authentication backend.
func (*Backend) Authenticate ¶
Authenticate performs authentication with an authentication provider.
func (Backend) MarshalJSON ¶
MarshalJSON packs configuration info JSON byte array
func (*Backend) UnmarshalJSON ¶
UnmarshalJSON unpacks configuration into appropriate structures.
type Failure ¶
type Failure struct { Mode string `json:"mode,omitempty"` // contains filtered or unexported fields }
Failure is a failure mode
func (Failure) MarshalJSON ¶
MarshalJSON packs configuration info JSON byte array
func (*Failure) UnmarshalJSON ¶
UnmarshalJSON unpacks configuration into appropriate structures.
type Reauth ¶
type Reauth struct { Backends []Backend `json:"backends,omitempty"` Failure Failure `json:"failure,omitempty"` // contains filtered or unexported fields }
Reauth module
func (Reauth) Authenticate ¶
func (r Reauth) Authenticate(w http.ResponseWriter, req *http.Request) (caddyauth.User, bool, error)
Authenticate the request
func (Reauth) CaddyModule ¶
func (Reauth) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
Click to show internal directories.
Click to hide internal directories.