middleware

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeaders

func AddHeaders(c *gin.Context)

func AuthJWT

func AuthJWT(storage cache.Storage, conf *models.Configuration, exPath string) gin.HandlerFunc

func GetParams

func GetParams(storage cache.Storage, conf *models.Configuration) gin.HandlerFunc

func InternalWork

func InternalWork(storage cache.Storage, conf *models.Configuration) gin.HandlerFunc

func Introspection

func Introspection(c *gin.Context, sub string, Account models.EzbAccounts) (err error)

func LoadConfig

func LoadConfig(conf *models.Configuration, exPath string) gin.HandlerFunc

func SelectWorker

func SelectWorker(c *gin.Context)

func StartTrace

func StartTrace(c *gin.Context)

func Store

func Store(storage cache.Storage, conf *models.Configuration) gin.HandlerFunc

Types

type Introspec

type Introspec struct {
	User       string   `json:"user"`
	UserSID    string   `json:"userSid"`
	UserGroups []string `json:"userGroups"`
}

type Payload

type Payload struct {
	JTI string `json:"jti"`
	ISS string `json:"iss"`
	SUB string `json:"sub"`
	AUD string `json:"aud"`
	EXP int    `json:"exp"`
	IAT int    `json:"iat"`
}

Jump to

Keyboard shortcuts

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