middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(ctx context.Context, config *config.McpServerConfig, next http.Handler) http.Handler

AuthMiddleware creates authentication middleware using the configured provider This function maintains backward compatibility while delegating to the provider pattern

Types

type ExternalAccountExtractorMiddlewareProvider

type ExternalAccountExtractorMiddlewareProvider struct{}

ExternalAccountExtractorMiddlewareProvider implements AccountExtractorMiddlewareProvider for external mode It provides simple scope injection without authentication validation

func (*ExternalAccountExtractorMiddlewareProvider) CreateAccountExtractorMiddleware

func (p *ExternalAccountExtractorMiddlewareProvider) CreateAccountExtractorMiddleware(ctx context.Context, config *config.McpServerConfig, next http.Handler) http.Handler

CreateAccountExtractorMiddleware creates a middleware that injects the account scope into the context For external mode, authentication is handled via API keys in the HTTP client

Jump to

Keyboard shortcuts

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