Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CookieAuthenticationMiddleware ¶
func CookieAuthenticationMiddleware(extend CookieExtend) gin.HandlerFunc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * cookie auth middleware * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Types ¶
type CookieExtend ¶
type CookieExtend struct {
Roles []string //角色(多个之间用逗号分隔)
Cookie ging.Cookie //cookie
AuthorizeUrl string //认证url
DefaultUrl string //认证通过默认返回url
PassUrls []string //直接通过的url
EncryptSecret string //加密秘匙
IsSliding bool //是否滑动失效期
IsDisabled bool //是否禁用验证
}
================================================================================ * Cookie认证模块 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================
Click to show internal directories.
Click to hide internal directories.