Skip to content

[Client][Auth] SEP-2468: Validate iss parameter in authorization response (RFC 9207) #360

@chr-hertel

Description

@chr-hertel

Implements SEP-2468 for the MCP Spec 2026-07-28 release.

Tracked by umbrella #338.

Spec summary

Requires MCP authorization responses to include an explicit iss (issuer) parameter per RFC 9207. Clients MUST validate iss against the AS that initiated the flow to mitigate authorization mix-up attacks in multi-IdP environments.

PHP SDK changes

  • When handling the authorization-code redirect, the client must validate the returned iss matches the AS that produced the authorization_endpoint URL.
  • Required for any multi-AS scenario; cross-cuts with [Client] Implement OAuth 2.0 Authorization Code flow with PKCE (RFC 6749 + RFC 7636) #319 (Auth Code + PKCE) but filed separately because the validation logic crosses callback + AS-metadata state.
  • Server-side: N/A — MCP servers are resource servers, not authorization servers; iss is emitted by the AS.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-07-28All issues and PRs related to the spec release 2026-07-28ClientIssues & PRs related to the Client componentP0Broken core functionality, security issues, critical missing featureauthIssues and PRs related to Authentication / OAuthenhancementRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions