Skip to content

[Bug]:Remote MCP server OAuth flow broken — AADSTS9010010: resource parameter conflicts with scope on v2.0 endpoint #68

Description

@lei-liu

Version

Remote Power BI MCP Server — https://api.fabric.microsoft.com/v1/mcp/powerbi

Model used

Claude Sonnet 4.6 (via GitHub Copilot CLI v1.0.2)

Description

The Remote Power BI MCP server's browser-based OAuth authentication flow stopped working around March 7–8, 2026. The authorization URL constructed by the server sends both a scope and a resource parameter on the OAuth v2.0 endpoint. This combination is invalid on v2.0 and now triggers AADSTS9010010 due to a Microsoft Entra ID enforcement change rolled out in early March 2026.

The v2.0 endpoint does not support the resource parameter (Microsoft docs). Azure AD previously tolerated this parameter silently, but stricter validation now rejects any request where resource conflicts with or duplicates the scope value.

The problematic authorization URL constructed by the server:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
  response_type=code&
  client_id=aebc6443-996d-45c2-90f0-388ff96faa56&
  code_challenge=RLVE6Q5yxa2kgoIBUD1FN5_Y_PKqAA9C-cqW8C2ju7w&
  code_challenge_method=S256&
  redirect_uri=http://127.0.0.1:50389/&
  state=XOzIbjumFRWmQmrNu226Z8O29x6qt-dlakQ5MYOmISY&
  scope=https://analysis.windows.net/powerbi/api/.default&
  resource=https://api.fabric.microsoft.com/v1/mcp/powerbi
Parameter Value Issue
scope https://analysis.windows.net/powerbi/api/.default ✅ Correct for v2.0
resource https://api.fabric.microsoft.com/v1/mcp/powerbi ❌ Not supported in v2.0; mismatched resource

Expected Behavior

The server initiates the browser OAuth flow, the user authenticates successfully, and the MCP client connects to https://api.fabric.microsoft.com/v1/mcp/powerbi with a valid token.

The OAuth v2.0 authorization request should include only the scope parameter. The resource parameter must be removed from the request.

Actual Behavior

The browser redirect to Azure AD returns:

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

Authentication never completes, and the MCP client reports:

MCP error -32001: Request timed out

Reproduction steps:

  1. Configure the Remote Power BI MCP server in any MCP client (no headers / pre-auth):
    {
      "powerbi-remote": {
        "url": "https://api.fabric.microsoft.com/v1/mcp/powerbi",
        "type": "http"
      }
    }
  2. Attempt to connect — the server initiates the browser OAuth flow.
  3. Browser shows the AADSTS9010010 error; authentication never completes.
  4. MCP client reports: MCP error -32001: Request timed out

Additional Context

  • OS: Windows 11
  • Tenant: Microsoft corp (72f988bf-86f1-41af-91ab-2d7cd011db47)
  • Date broken: ~March 7–8, 2026 (worked fine the prior week)
  • Screenshot: [Screenshot 2026-03-09 154643.png] showing AADSTS9010010 in browser

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