Documentation ¶
Index ¶
- func GetRequestID(r *http.Request) string
- type AuthMiddleware
- func (AuthMiddleware) CaddyModule() caddy.ModuleInfo
- func (m *AuthMiddleware) Provision(ctx caddy.Context) error
- func (m AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error
- func (m *AuthMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
- func (m *AuthMiddleware) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶ added in v1.0.15
GetRequestID returns request ID.
Types ¶
type AuthMiddleware ¶ added in v1.2.6
type AuthMiddleware struct {
Portal *authn.Authenticator `json:"authp,omitempty"`
}
AuthMiddleware implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0, SAML Authentication.
func (AuthMiddleware) CaddyModule ¶ added in v1.2.6
func (AuthMiddleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*AuthMiddleware) Provision ¶ added in v1.2.6
func (m *AuthMiddleware) Provision(ctx caddy.Context) error
Provision provisions authentication portal provider
func (AuthMiddleware) ServeHTTP ¶ added in v1.2.6
func (m AuthMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error
ServeHTTP authorizes access based on the presense and content of JWT token.
func (*AuthMiddleware) UnmarshalCaddyfile ¶ added in v1.4.15
func (m *AuthMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) (err error)
UnmarshalCaddyfile unmarshals a caddyfile
func (*AuthMiddleware) Validate ¶ added in v1.2.6
func (m *AuthMiddleware) Validate() error
Validate implements caddy.Validator.
Click to show internal directories.
Click to hide internal directories.