Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JwtMiddleware = jwtmiddleware.New(jwtmiddleware.Options{ ValidationKeyGetter: func(token *jwt.Token) (interface{}, error) { return signingKey, nil }, UserProperty: "user", Debug: false, SigningMethod: jwt.SigningMethodHS256, })
JwtMiddleware handler for jwt tokens
Functions ¶
func GetJSONToken ¶
GetJSONToken create a JSON token string
func GetUserClaimsFromContext ¶
GetUserClaimsFromContext return "user" claims as a map from request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.