Documentation ¶
Index ¶
- func Sign(req *http.Request, key *key.PrivateKey, params config.SignerParams) error
- func Verify(req *http.Request, keyServer keyserver.Reader, ...) (jose.Claims, error)
- type StoppableProxyHandler
- func NewAuthenticationHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
- func NewJWTSignerHandler(cfg config.SignerConfig) (*StoppableProxyHandler, error)
- func NewJWTVerifierHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
- func NewReverseProxyHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(req *http.Request, key *key.PrivateKey, params config.SignerParams) error
Types ¶
type StoppableProxyHandler ¶
func NewAuthenticationHandler ¶
func NewAuthenticationHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
Set cookie with token passed in authentication header
func NewJWTSignerHandler ¶
func NewJWTSignerHandler(cfg config.SignerConfig) (*StoppableProxyHandler, error)
func NewJWTVerifierHandler ¶
func NewJWTVerifierHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
func NewReverseProxyHandler ¶
func NewReverseProxyHandler(cfg config.VerifierConfig) (*StoppableProxyHandler, error)
Simply proxying request to the upstream
func (*StoppableProxyHandler) Stop ¶
func (sph *StoppableProxyHandler) Stop() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.