Skip to content

MCP server OIDC auth fails with Entra ID v2 (AADSTS9010010) #2466

@zisk

Description

@zisk

Describe the bug
Configuring the MCP server with Microsoft Entra ID (Azure AD) as the OIDC provider fails during the OAuth authorization step with:

AADSTS9010010: The resource parameter provided in the request doesn't match with the requested scopes.

To reproduce

  1. Configure Tracecat with OIDC_ISSUER=https://login.microsoftonline.com/{tenant}/v2.0
  2. Start the MCP server
  3. Initiate OAuth from an MCP client
  4. Authorization redirect to Entra fails with AADSTS9010010

Screenshots

Image Image

Environment (please complete the following information):

  • Tracecat 1.0.0-beta.36
  • OS Debian 12
  • Where did you deploy Tracecat? VM/Docker
  • CPU architecture
  • Browser type (e.g. Chrome, Safari, Edge, etc.) and version
  • Docker / Podman version Docker version 28.3.2, build 578ccf6
  • Docker Compose / Podman Compose version

Additional context

I did some poking around with Claude to figure out where the issue originates and I believe its related to fastmcp passing the resource parameter from the client.

The Azure issue and fix is detailed here: PrefectHQ/fastmcp#1846

A more generic fix looks like it was added recently but likely isn't in the version of fastmcp currently in use: PrefectHQ/fastmcp#3711

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions