common

package
v2.0.23 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common holds the constants shared by the MCP resource-server, middleware and authorization packages under pkg/mcp.

Index

Constants

View Source
const (
	ForwardedUriHeader    = "X-Forwarded-Uri"
	ForwardedMethodHeader = "X-Forwarded-Method"
)

ForwardedUriHeader and ForwardedMethodHeader carry the route under authorization to security-proxy-auth, matching its gateway-style contract.

View Source
const AuthReasonInsufficientScope = "insufficient_scope"

AuthReasonInsufficientScope is the stable RFC 6750 reason token put in authorization-refusal messages so clients can match on it.

View Source
const AuthorizationHeader = "Authorization"

AuthorizationHeader is the standard HTTP Authorization header, carrying the end user's bearer token on inbound MCP requests and on forwarded proxy-auth calls.

View Source
const ForwardedResourceHeader = "X-Forwarded-Resource"

ForwardedResourceHeader carries the MCP service's resource identifier so proxy-auth can confine a token to its bound audience (RFC 8707 aud).

View Source
const MCPPath = "/mcp"

MCPPath is the HTTP path the MCP Streamable transport listens on.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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