middleware

package
v0.0.0-...-fc5c00f Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GrpcFullServiceName = protos.FlowService_ServiceDesc.ServiceName

Functions

func AuthGrpcMiddleware

func AuthGrpcMiddleware(ctx context.Context, unauthenticatedMethods []string) (grpc.UnaryServerInterceptor, error)

func BuildHttpMethodMapping

func BuildHttpMethodMapping(ctx context.Context) map[string]string

func RecoveryMiddleware

func RecoveryMiddleware() grpc.UnaryServerInterceptor

RecoveryMiddleware returns a gRPC unary server interceptor that recovers from panics

func RequestIdMiddleware

func RequestIdMiddleware() grpc.UnaryServerInterceptor

func RequestLoggingMiddleware

func RequestLoggingMiddleware(ctx context.Context) grpc.UnaryServerInterceptor

Types

type AuthenticationConfig

type AuthenticationConfig struct {
	OauthJwtCustomClaims  map[string]string `json:"oauth_custom_claims" yaml:"oauth_custom_claims" mapstructure:"oauth_custom_claims"`
	KeySetJSON            string            `json:"key_set_json" yaml:"key_set_json" mapstructure:"key_set_json"`
	OAuthIssuerUrl        string            `json:"oauth_domain" yaml:"oauth_domain" mapstructure:"oauth_domain"`
	Enabled               bool              `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
	OAuthDiscoveryEnabled bool              `json:"oauth_discovery_enabled" yaml:"oauth_discovery_enabled" mapstructure:"oauth_discovery_enabled"`
}

Jump to

Keyboard shortcuts

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