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
- Configure Tracecat with OIDC_ISSUER=https://login.microsoftonline.com/{tenant}/v2.0
- Start the MCP server
- Initiate OAuth from an MCP client
- Authorization redirect to Entra fails with AADSTS9010010
Screenshots
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
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
Screenshots
Environment (please complete the following information):
1.0.0-beta.36Debian 12Docker version 28.3.2, build 578ccf6Additional context
I did some poking around with Claude to figure out where the issue originates and I believe its related to fastmcp passing the
resourceparameter 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