Skip to content

lab - mcp-client-authorization - oauth failing when testing with inspector and vscode #180

Description

@tvriesde

The Lab to configure oauth with apim seems broken.

When performing the oauth flow, all seems to work fine.

Consent page is opened. But after redirect back after consent, I get the following error.

Image Image

Error from vscode
2025-07-11 10:12:07.446 [warning] Error getting token from server metadata: Canceled: Canceled

When observing the logs of APIM, I notice inspector is trying to reach :

  • GET /.well-known/oauth-protected-resource
  • OPTIONS /.well-known/oauth-protected-resource

Which are not exposed by the oauth api. Only endpoints at .well-known are oauth-authorization-server

Image

I am not sure if the lack of oauth-protected-resource not being configured is the culprit of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions