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
Click to show internal directories.
Click to hide internal directories.