code

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextBindingController

type ContextBindingController struct {
	JWTser            jwt.Service             //starter:inject("#")
	SessionService    security.SessionService //starter:inject("#")
	PermissionService rbac.PermissionService  //starter:inject("#")
	SubjectsLoader    subjects.Loader         //starter:inject("#")

	GroupNameList string //starter:inject("${security.web.groups}")
	Bypass        bool   //starter:inject("${security.web.bypass}")
	// contains filtered or unexported fields
}

ContextBindingController 这个控制器用于配置预先绑定上下文的中间件

func (*ContextBindingController) Registration

Registration ...

type GinContextJWTAdapter

type GinContextJWTAdapter struct {
	JWTService jwt.Service //starter:inject("#")

	UseCookie  bool  //starter:inject("${security.jwt.use-cookie}")
	UseHeader  bool  //starter:inject("${security.jwt.use-header}")
	MaxAgeInMS int64 //starter:inject("${security.jwt.max-age-in-ms}")
	// contains filtered or unexported fields
}

GinContextJWTAdapter ...

func (*GinContextJWTAdapter) Accept

func (inst *GinContextJWTAdapter) Accept(c context.Context) bool

Accept ...

func (*GinContextJWTAdapter) GetText

func (inst *GinContextJWTAdapter) GetText(c context.Context) (jwt.Text, error)

GetText ...

func (*GinContextJWTAdapter) ListRegistrations

func (inst *GinContextJWTAdapter) ListRegistrations() []*jwt.Registration

ListRegistrations ...

func (*GinContextJWTAdapter) SetText

func (inst *GinContextJWTAdapter) SetText(c context.Context, t jwt.Text) error

SetText ...

Jump to

Keyboard shortcuts

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