fix: update MCP Inspector authorization flow to reflect PRM resource id (+instructions)#365
Draft
Justrebl wants to merge 4 commits into
Draft
Conversation
…dience validation
Justrebl
marked this pull request as draft
July 8, 2026 09:44
Justrebl
force-pushed
the
fix/mcp-prm-inspector-authentication
branch
from
July 20, 2026 12:11
9ca6bc8 to
d9fdb7a
Compare
Justrebl
marked this pull request as ready for review
July 20, 2026 13:03
Justrebl
marked this pull request as draft
July 20, 2026 15:59
Justrebl
force-pushed
the
fix/mcp-prm-inspector-authentication
branch
from
July 20, 2026 19:09
c002b17 to
451609d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Fix MCP Inspector authorization flow to reflect PRM resource id
Concrete repro step before fix :
Purpose
mcp-prm-oauthlab with RFC 9728 (Protected Resource Metadata) by using the full APIM MCP endpoint URL ({APIMGatewayURL}/{mcpApiPath}/mcp) as the OAuth resource identifier, instead of the Entra applicationclient_id.resource,scopes_supported, JWTaudience,WWW-Authenticatemetadata URL, and the Entra app Application ID URI all reference the same PRM resource id and are consistent end-to-end.identifierUris(Application ID URI) and is configured as a public client (Authorization Code + PKCE) with a federated credential trusting the user-assigned managed identity.modules/apim/v4/apim.bicepmodule targeting the2025-09-01-previewAPI Management API version and migrates the lab to it.Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
git clone https://github.com/Azure-Samples/AI-Gateway.git cd AI-Gateway git checkout fix/mcp-prm-inspector-authenticationWhat to Check
Verify that the following are valid:
mcp-prm.policy.xml) advertisesresource = {APIMGatewayURL}/{mcpApiPath}/mcpandscopes_supported = {APIMGatewayURL}/{mcpApiPath}/mcp/user_impersonate.validate-azure-ad-tokenpolicy (mcp-api.policy.xml) accepts both the MCPclient_idand the{APIMGatewayURL}/{mcpApiPath}audience.WWW-Authenticateheader returnsresource_metadatapointing to.well-known/oauth-protected-resource/{mcpApiPath}/mcp/.mcp-entra-app.bicep) is created with the correctidentifierUris(Application ID URI), public-client configuration, and federated credential.modules/apim/v4/apim.bicepmodule and the2025-09-01-previewresource API versions.