authinterceptor

package
v0.0.0-...-6a31564 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGatewayContext

func GetGatewayContext(ctx context.Context) (any, error)

func New

func New(idpProvider *idp.Provider) grpc.StreamServerInterceptor

func ParseGatewayContextInto

func ParseGatewayContextInto(ctx context.Context, into any) error

func WithUnaryValidator

func WithUnaryValidator(idpProvider *idp.Provider) grpc.ServerOption

Types

type GatewayContext

type GatewayContext struct {
	UserContext types.APIContext
	Connection  types.ConnectionInfo
	Agent       pgrest.Agent

	BearerToken string
	IsAdminExec bool
}

func (*GatewayContext) ValidateConnectionAttrs

func (c *GatewayContext) ValidateConnectionAttrs() error

type GatewayContextKey

type GatewayContextKey struct{}

Jump to

Keyboard shortcuts

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