jwtmiddleware

package
v0.0.631 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SessionContextKey string = "github.com/ory/x/jwtmiddleware.session"

Variables

This section is empty.

Functions

func SessionFromContext

func SessionFromContext(ctx context.Context) (json.RawMessage, error)

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(
	wellKnownURL string,
	opts ...MiddlewareOption,
) *Middleware

func (*Middleware) NegroniHandler

func (h *Middleware) NegroniHandler() negroni.Handler

type MiddlewareOption

type MiddlewareOption func(*middlewareOptions)

func MiddlewareAllowSigningMethod

func MiddlewareAllowSigningMethod(method jwt.SigningMethod) MiddlewareOption

func MiddlewareDebugEnabled

func MiddlewareDebugEnabled() MiddlewareOption

func MiddlewareExcludePaths

func MiddlewareExcludePaths(paths ...string) MiddlewareOption

Jump to

Keyboard shortcuts

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