Documentation ¶
Index ¶
Constants ¶
View Source
const (
IdentityKey = "id"
)
Variables ¶
View Source
var JWTAuthMiddleware *jwt.GinJWTMiddleware
Functions ¶
func JWTInitParamas ¶
func JWTInitParamas() *jwt.GinJWTMiddleware
func KeyRequired ¶
func OptionalJWTMiddleware ¶
用在一些可选登录接口上.
如果登录了, 则会在 ctx 中设置 "logged" 为 true, 并设置 "claims" 为 jwt.MapClaims.
func ValidateParamObjectID ¶
func ValidatePictureID ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.