Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CookieAuthenticationMiddleware ¶
func CookieAuthenticationMiddleware(extend CookieExtend) webing.HandlerFunc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * cookie auth middleware * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Logoff ¶
func Logoff(ctx *webing.RequestContext)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * logoff * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func Logon ¶
func Logon(ctx *webing.RequestContext, payload *webing.TokenPayload) bool
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * logon * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Types ¶
type CookieExtend ¶
type CookieExtend struct {
Roles []string //角色(多个之间用逗号分隔)
Cookie webing.Cookie //cookie
AuthorizeUrl string //认证url
DefaultUrl string //认证通过默认返回url
PassUrls []string //直接通过的url
EncryptSecret string //加密秘匙
IsSliding bool //是否滑动失效期
IsDisabled bool //是否禁用验证
}
================================================================================ * Cookie认证模块 * author: 美丽的地球啊 - mliu * ================================================================================