cookie

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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