Documentation ¶
Index ¶
- func LastNChars(n int, s string) string
- type Middleware
- func (m *Middleware) CaddyModule() caddy.ModuleInfo
- func (m *Middleware) Provision(ctx caddy.Context) error
- func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *Middleware) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LastNChars ¶ added in v0.32.0
LastNChars returns the last n characters of a string.
Types ¶
type Middleware ¶
type Middleware struct { TokenFile string Issuer string InjectOrgHeader bool AllowUpstreamAuth bool Verify bool TenantOrgClaim string SigningKey string Groups []string Scopes []string // contains filtered or unexported fields }
func (*Middleware) CaddyModule ¶
func (m *Middleware) CaddyModule() caddy.ModuleInfo
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
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Click to show internal directories.
Click to hide internal directories.