middleware

package
v0.0.0-...-d613b37 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JwtUserContextKey = "JwtUserKey"
	JwtClaimsUserKey  = "user"
)
View Source
const (
	JwtCookieName = "jwt"
)
View Source
const (
	JwtUrlParam = "jwt"
)

Variables

This section is empty.

Functions

func CheckPolicy

func CheckPolicy(warden *ladon.Ladon, policy PolicyRequest) endpoint.Middleware

func JwtCookieToHTTPContext

func JwtCookieToHTTPContext(cookieName string) http.RequestFunc

func JwtUrlToHTTPContext

func JwtUrlToHTTPContext(jwtUrlParam string) http.RequestFunc

Types

type PolicyRequest

type PolicyRequest func(map[string]interface{}) *ladon.Request

Jump to

Keyboard shortcuts

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