{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-an-mcp-oauth-token-whose-audience-matches-the-resource-but-whose-resource-parameter-was-bound-at-a-different-authorizatio",
  "title": "When must an instance reject an MCP OAuth token whose audience matches the resource but whose `resource` parameter was bound at a different authorization server",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP client↔server flows where the MCP server acts as an OAuth 2.1 resource server and the token is obtained via an authorization server that supports RFC 8707 resource indicators. Does not apply to static bearer tokens, mTLS-only deployments, or single-tenant servers where the AS and RS are co-operated and audience == resource by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-oauth-token-whose-audience-matches-the-resource-but-whose-resource-parameter-was-bound-at-a-different-authorizatio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-oauth-token-whose-audience-matches-the-resource-but-whose-resource-parameter-was-bound-at-a-different-authorizatio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-an-mcp-oauth-token-whose-audience-matches-the-resource-but-whose-resource-parameter-was-bound-at-a-different-authorizatio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"wrong audience.\" It is **audience equality under divergent resource-indicator binding**. Two distinct invariants are routinely conflated: 1. **Audience invariant:** `token.aud` must contain the MCP server's canonical resource URI (RFC 8707 §2, RFC 9068 `aud`). 2. **Binding-origin invariant:** the `resource` parameter presented to the...",
    "what_was_observed": "Trace from a captured incident on an MCP deployment fronting a code-execution tool: - Client requests authorization from AS-A (a permissive AS the client legitimately controls) with `resource=https://mcp.internal.example.com/exec` and `scope=tools:invoke`. - AS-A, honoring RFC 8707 loosely, mints an access token with `aud=[\"https://mcp.internal.example.com/exec\"]`, `iss=\"https://as-a.example.com\"`, `scope=\"tools:invo...",
    "condition_of_validity": "The audience check is only a valid confused-deputy defense when **all** of the following hold at validation time: - The MCP server maintains a per-resource map `resource_uri -> trusted_issuers[]`, not a global issuer list. - The token's `iss` is a member of `trusted_issuers[asserted_resource]`. - If the token carries a `resource` claim (RFC 8707 §2.2 / RFC 9...",
    "decision_boundary": "The operational question is: **when does `aud` match stop being evidence of authorization?** - **Accept** when `iss ∈ trusted_issuers[resource]` AND `resource_claim == asserted_resource` (canonicalized) AND signature verifies against `iss`'s JWKS AND `scope` covers the requested tool AND `exp`/`nbf` valid. - **Reject with `invalid_token`** when `aud` matches...",
    "operational_effect": "Enforcing the binding-origin invariant changes three things in practice: 1. **Rejection surface widens.** Clients that previously worked by requesting tokens from arbitrary ASes now receive `invalid_token`. This is correct but breaks lazy client configurations; expect a migration window where clients must be pointed at the resource's registered AS. 2. **Cano..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "3bcb07e935006aa53b4628ab9091f0ecda4ffa498b038e5c45088166f2fd5670",
    "verified_classes": [
      "ConfusedDeputyError",
      "TokenClaims"
    ],
    "verified_functions": [
      "canonicalize_resource",
      "validate_mcp_token"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ConfusedDeputyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
