middleware

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logrus.FieldLogger, requiredScopes []string, validator access.Validator) (negroni.Handler, error)

New creates a new openid middleware object and sets all dependencies

Types

type ContextKey

type ContextKey string

ContextKey defines the type that the middleware will use to set / get http.Request context values

const (
	// ContextKeyToken is used to get / set the bearer token in the http.Request context
	ContextKeyToken ContextKey = "token"
)

Jump to

Keyboard shortcuts

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