ON-PREM CHOREO CLOUD BOTH

What it is

The mcp-auth policy protects an MCP proxy with OAuth. A caller without a token gets a 401 response that tells it where to get one, and a caller with a token has it validated. Agent Manager applies it to MCP proxies that are secured with identity.

Why it exists

MCP tool servers give agents powerful actions. Requiring a valid token from the right issuer stops anonymous calls.

How it works

  • Returns 401 with a WWW-Authenticate header and metadata, so a client can discover the right authorization server.
  • Validates the token against the ThunderID key manager (AMS names that key manager as the allowed issuer).
  • The requiredScopes setting here is used only to advertise scopes to clients. The real per-tool check is in mcp-authz.
  • Runs before mcp-authz in the policy chain.

Identity and access

The agent first gets a token from its environment ThunderID, then presents it as a Bearer token. The token ThunderID issues for the MCP proxy carries that proxy's resource identifier as its audience.

Key facts

Policy
mcp-auth v1
Challenge
401 plus WWW-Authenticate
Runs before
mcp-authz
Side
Data plane (gateway policy)
Namespace
gateway

Used by (1)