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
Click to show internal directories.
Click to hide internal directories.