Documentation ¶
Overview ¶
Package middleware provides a standard set of middleware for pomerium.
Index ¶
- func Recovery(next http.Handler) http.Handler
- func RequireBasicAuth(username, password string) func(next http.Handler) http.Handler
- func SetHeaders(headers map[string]string) func(next http.Handler) http.Handler
- func ValidateRequestURL(r *http.Request, key []byte) error
- func ValidateSignature(sharedKey []byte) func(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireBasicAuth ¶ added in v0.14.0
RequireBasicAuth creates a new handler that requires basic auth from the client before calling the underlying handler.
func SetHeaders ¶
SetHeaders sets a map of response headers.
func ValidateRequestURL ¶ added in v0.5.1
ValidateRequestURL validates the current absolute request URL was signed by a given shared key.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package responsewriter contains helper functions that useful for hooking into various parts of a response.
|
Package responsewriter contains helper functions that useful for hooking into various parts of a response. |
Click to show internal directories.
Click to hide internal directories.