Skip to content

Incorrect contructor for Okta Custom Authorization Server OAuth metadata URL #744

@brvaland

Description

@brvaland

Hello,

I am using Okta Identity Server with our organization and I tried to add OAuth to MCP Server. In my PRM document I have declared below authorization server details.

{
   "authorization_servers": [
       "https://dev-012345.oktapreview.com/oauth2/ausxxxxxx0h9"
    ]
}

Inspector tries to construct the metadata endpoint like this:

https://dev-012345.oktapreview.com/.well-known/oauth-authorization-server

The correct .well-known url for okta custom auth server as below

https://dev-012345.oktapreview.com/oauth2/ausxxxxxx0h9/.well-known/oauth-authorization-server

I tried with different mcp client such as vscode and it construct correctly but not sure if above is expected or a bug in inspector.

Is there a workaround or way to resolve the issue will be helpful.?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions