middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context, vars GinHandlerVars)

Types

type GinHandlerVars

type GinHandlerVars struct {
	Logger               *zap.Logger
	AWSService           *services.AWSService
	PermissionRepository *repositories.PermissionRepository
	SessionRepository    *repositories.SessionRepository
	BanRepository        *repositories.BanRepository
	DomainRepository     *repositories.DomainRepository
	GroupRepository      *repositories.GroupRepository
	TicketRepository     *repositories.TicketRepository
	ImoRepository        *repositories.IMORepository
	AppConfig            *appconfig.AppConfig
	IsCacheReady         *bool
}

type GoogleRefreshTokenResponse

type GoogleRefreshTokenResponse struct {
	IdToken     string `json:"id_token"`
	AccessToken string `json:"access_token"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
}

type JwtTokenDetails

type JwtTokenDetails struct {
	At_hash string `json:"at_hash"`
	Aud     string `json:"aud"`
	Azp     string `json:"azp"`
	Email   string `json:"email"`
	Exp     int64  `json:"exp"`
	Hd      string `json:"hd"`
	Iat     int64  `json:"iat"`
	Iss     string `json:"iss"`
	Sub     string `json:"sub"`
}

Jump to

Keyboard shortcuts

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