autheliacaddy

package module
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 12 Imported by: 0

README

autheliacaddy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authelia

type Authelia struct {
	ServiceURL string `json:"service_url,omitempty"`
	VerifyURL  string `json:"verify_url,omitempty"`
	// contains filtered or unexported fields
}

Authelia is a Caddy v2 module that will perform authentication and authorization of requests with a Authelia instance.

func (Authelia) CaddyModule

func (a Authelia) CaddyModule() caddy.ModuleInfo

CaddyModule implements the caddy.Module interface. It creates a new Authelia module.

func (*Authelia) Provision

func (a *Authelia) Provision(ctx caddy.Context) error

Provision implements the caddy.Provisioner interface. It does work before the module can be used.

func (Authelia) ServeHTTP

func (a Authelia) ServeHTTP(writer http.ResponseWriter, request *http.Request, handler caddyhttp.Handler) error

ServeHTTP implements the caddyhttp.MiddlewareHandler interface. It serves as an HTTP middleware to authenticate requests to Authelia.

func (*Authelia) UnmarshalCaddyfile

func (a *Authelia) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:

authelia <verify_url> <service_url>

Jump to

Keyboard shortcuts

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