Skip to main content
POST
DiscoverOIDCEndpoints

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

MCPServerServiceDiscoverOIDCEndpointsRequest fetches the OpenID Connect discovery document for a given issuer URL.

issuerUrl
string

The issuer URL (e.g. "https://accounts.google.com"). The server appends /.well-known/openid-configuration to this URL.

Response

200 - application/json

MCPServerServiceDiscoverOIDCEndpointsResponse returns the discovered OAuth2 endpoints.

MCPServerServiceDiscoverOIDCEndpointsResponse returns the discovered OAuth2 endpoints.

authorizationEndpoint
string

The authorization endpoint URL.

codeChallengeMethodsSupported
string[] | null

PKCE code challenge methods supported by the authorization server (RFC 8414). Typical values: "plain", "S256". Empty when the discovery doc omits this field. The frontend should pass the array back unchanged on save so the backend can persist it on the connector and skip per-flow re-discovery.

scopesSupported
string[] | null

Scopes supported by the authorization server.

tokenEndpoint
string

The token endpoint URL.