inspector icon indicating copy to clipboard operation
inspector copied to clipboard

OAuth 2.0 Flow scopes are ignored when building authorization URL

Open micovery opened this issue 3 months ago • 1 comments

Inspector Version

  • v0.17.0

Describe the bug Scope field is being ignored when building the OAuth authorization URL

To Reproduce

  1. Set Transport type to "Streamable HTTP"
  2. Set URL to an MCP server that requires OAuth2
  3. Set Client ID under the "OAuth 2.0 Flow" section
  4. Set one or more scopes under the "OAuth 2.0 Flow" section
  5. Do the "Guided OAuth Flow" ...
  6. When you reach the "Preparing Authorization" section, notice the "Authorization URL". It completely ignores anything you enter in the "Scope" field. Instead it uses the "scopes_supported" discovered from the protected resource metadata, or from from the /.well-known/oauth-authorization-server metadata.

Expected behavior This behavior is not correct. If the user enters a set of scopes, those should take precence.

One could argue that you should never use the discovered scopes, as this is purely an informational hint given to the client. Just because a certain scope is supported, does not imply I want to request that scope. If you wanted, you could display the supported scopes, and allow the user to select the ones they want to request.

Screenshots

Image

Environment (please complete the following information):

  • OS: MacOS
  • Browser Chrome - Version 141.0.7390.66 (Official Build) (arm64)

micovery avatar Oct 11 '25 21:10 micovery

Can concur Ubuntu 25.10/Firefox/inspector 017.1. Scopes are ignored Image

symdeb avatar Oct 14 '25 04:10 symdeb