trapauth

package module
v2.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 11 Imported by: 0

README

caddy-trap-auth

usage

trapauth

or

trapauth {
    redirect [location]
    token_source [header or cookie]
    source_key [cookie name]
    type [soft or hard]

    user_header [name]
    email_header [name]
    full_name_header [name]

    accept_user [username] [username]
    no_strip
    invalidate_token [token] [token]
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Redirect    string `json:"redirect,omitempty"`
	TokenSource string `json:"token_source,omitempty"`
	SourceKey   string `json:"source_key,omitempty"`
	AuthType    string `json:"auth_type,omitempty"`

	UserHeader     string `json:"user_header,omitempty"`
	EmailHeader    string `json:"email_header,omitempty"`
	FullNameHeader string `json:"full_name_header,omitempty"`

	NoStrip         bool     `json:"no_strip,omitempty"`
	AcceptUser      []string `json:"accept_user,omitempty"`
	InvalidateToken []string `json:"invalidate_token,omitempty"`
	// contains filtered or unexported fields
}

func (Middleware) CaddyModule

func (Middleware) CaddyModule() caddy.ModuleInfo

func (*Middleware) Provision

func (m *Middleware) Provision(ctx caddy.Context) error

func (Middleware) ServeHTTP

func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

func (*Middleware) UnmarshalCaddyfile

func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

Jump to

Keyboard shortcuts

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