cookie

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookieAuthenticationMiddleware

func CookieAuthenticationMiddleware(extend CookieExtend) gin.HandlerFunc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * cookie auth middleware * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

func Logoff

func Logoff(ctx *gin.Context)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * logoff * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

func Logon

func Logon(ctx *gin.Context, payload *ging.TokenPayload) bool

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * logon * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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 * ================================================================================

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL