OAuth client metadata document

Preview

Not yet in the latest release.

Public. This instance's OAuth Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document) for one authorization server: its URL is the client_id an auto-provisioned integration auth (remote MCP, or a server chosen per connection — token_endpoint_auth_method: none) presents to a server whose validated metadata advertises client_id_metadata_document_supported and RFC 9207 authorization_response_iss_parameter_supported (the iss check is what refuses a response another server returns on this redirect URI), which fetches it — the client registration MCP 2026-07-28 prefers to dynamic registration (RFC 7591), the fallback otherwise. document is <base64url(issuer)>.json, and the document names that server's own redirect URI (/api/integrations/callback/cimd/<tag>), so each server is given a client_id and a redirect URI of its own (RFC 9700 §4.4). Presented only when the instance can serve it (see INTEGRATION_OAUTH_CIMD in docs/ENV.md); otherwise connect registers by DCR. Computed from APP_URL and the issuer, nothing stored.

GET/oauth/client-metadata/{document}

Path Parameters

document*string

<base64url(issuer)>.json, the issuer in its canonical encoding: an https URL, or http for a host listed in EGRESS_ALLOW_INTERNAL_HOSTS.

Match^[A-Za-z0-9_-]+\.json$
Lengthlength <= 2048
curl -X GET "https://your-instance/oauth/client-metadata/string"
{
  "client_id": "https://app.example.com/oauth/client-metadata/aHR0cHM6Ly9tY3Aubm90aW9uLmNvbQ.json",
  "client_name": "Appstrate (app.example.com)",
  "client_uri": "https://app.example.com",
  "redirect_uris": [
    "https://app.example.com/api/integrations/callback/cimd/ZUGRhbwa83_JyNgKjMOax-"
  ],
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "response_types": [
    "code"
  ],
  "token_endpoint_auth_method": "none"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "code": "string",
  "request_id": "string",
  "param": "string",
  "retry_after": 0,
  "errors": [
    {
      "field": "string",
      "code": "string",
      "message": "string",
      "title": "string",
      "line": 1,
      "column": 1,
      "candidate_connections": [
        {
          "id": "string",
          "label": "string",
          "account_id": "string",
          "owned_by_actor": true,
          "needs_reconnection": true,
          "scopes_granted": [
            "string"
          ],
          "missing_scopes": [
            "string"
          ]
        }
      ],
      "connection_id": "string",
      "missing_scopes": [
        "string"
      ],
      "remedy": "new_connection",
      "owned_by_actor": true,
      "required_scopes": [
        "string"
      ],
      "auth_key": "string",
      "required_auth_key": "string",
      "available_auth_keys": [
        "string"
      ],
      "source": "admin_pin",
      "connect_url": "http://example.com",
      "expiresAt": "2019-08-24T14:15:22Z",
      "packageId": "string"
    }
  ]
}