api

package
v0.0.0-...-cb03b93 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AuthMethodHeader = "X-Auth-Method"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddleware

type AuthMiddleware struct {
	Audience             string
	AllowedGCPPrincipals []string
	// contains filtered or unexported fields
}

func NewAuthMiddleware

func NewAuthMiddleware(issuer, audience string, gcpPrincipals []string) (AuthMiddleware, error)

func (*AuthMiddleware) Require

func (a *AuthMiddleware) Require(next echo.HandlerFunc) echo.HandlerFunc

type CustomClaims

type CustomClaims struct {
	Scope string `json:"scope"`
}

func (CustomClaims) Validate

func (c CustomClaims) Validate(ctx context.Context) error

Validate does nothing for this example, but we need it to satisfy validator.CustomClaims interface.

type Handlers

type Handlers struct {
	SFClient        *sfdc.Client
	DiscordClient   *discord.Client
	DBClient        *db.Client
	GroupsClient    *groups.Client
	GroupExceptions []string
	CheckMeInClient *checkmein.Client
	EmailClient     *mail.Client
}

func (*Handlers) Reconcile

func (h *Handlers) Reconcile(c echo.Context) error

Jump to

Keyboard shortcuts

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