Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { // Base URL for the RBAC service ServiceURL string `json:"service_url"` // Timeout for RBAC service requests Timeout caddy.Duration `json:"timeout"` // Application name is used when enumerating permissions for a principal Application string `json:"application"` // contains filtered or unexported fields }
Middleware implements an HTTP handler that requests RBAC permissions and inserts them as a header
func (Middleware) CaddyModule ¶
func (Middleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Middleware) Provision ¶
func (m *Middleware) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (Middleware) ServeHTTP ¶
func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Validate implements caddy.Validator.
Click to show internal directories.
Click to hide internal directories.