Skip to content

Require the aud claim once the authorization server emits it #201

Description

The MCP 2026-07-28 spec makes audience validation a MUST for resource servers. verifyAccessToken rejects a token whose aud names another resource, but accepts one carrying no aud at all, because Socket's introspection endpoint returns only active, client_id, scope, and exp. Defaulting to strict today would reject every live OAuth request.

SOCKET_OAUTH_REQUIRE_AUDIENCE opts a deployment into requiring the claim. Once the authorization server reports aud at introspection, flip that default to on and drop the accept-when-absent branch in lib/oauth.ts.

Blocked on the authorization-server change landing and deploying.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions