Documentation ¶
Index ¶
- Constants
- func CheckPolicy(warden *ladon.Ladon, policy PolicyRequest) endpoint.Middleware
- func JwtCookieToHTTPContext(cookieName string) http.RequestFunc
- func JwtUrlToHTTPContext(jwtUrlParam string) http.RequestFunc
- func Session(sess session.Session, verify session.SessionVerification) endpoint.Middleware
- type PolicyRequest
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
func Session ¶
func Session(sess session.Session, verify session.SessionVerification) endpoint.Middleware
Types ¶
type PolicyRequest ¶
Click to show internal directories.
Click to hide internal directories.