jwt

package
v0.10.1-0...-c8b812c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: EPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func Verify

func Verify(req *http.Request, keyServer keyserver.Reader, nonceVerifier noncestorage.NonceStorage, cookiesEnabled bool, expectedAudience string, maxSkew time.Duration, maxTTL time.Duration, publicBasePath string) (jose.Claims, error)

Types

type StoppableProxyHandler

type StoppableProxyHandler struct {
	proxy.Handler
	// contains filtered or unexported fields
}

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{}

Jump to

Keyboard shortcuts

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