Update SSO Provider

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.connect.century.tech/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Connect API MCP server": {
    "url": "https://docs.connect.century.tech/mcp"
  }
}

Close
PATCH /sso-providers/{providerId}

Change the issuer, the client ID, the client secret or the scopes of an SSO provider. Send only the fields that change. When you send an issuer, CENTURY reads its discovery document again. The domain and the provider ID cannot change: to use a different domain, delete the provider and create a new one.

An issuer change removes the linked IdP accounts of the provider. The users, their memberships and their sessions stay.

Path parameters

  • providerId string Required

    SSO provider ID. CENTURY makes it from the domain of the provider, and it does not change. It has lower case letters, digits and single hyphens only.

    Maximum length is 227. Format should match the following pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$.

application/json

Body Required

  • issuer string(uri)

    The OIDC issuer of the identity provider. It must be an HTTPS URL, and it must be the same as the issuer in the discovery document at {issuer}/.well-known/openid-configuration. The host must be a public DNS name, not an IP address. The URL must have no user name, port, query or fragment. The host is in lower case and the URL is in its normal form.

    Maximum length is 2048. Format should match the following pattern: ^https:\/\/[A-Za-z0-9.-]+(?:\/[!-"$->@-[\]-~]*)?$.

  • clientId string

    The client ID that the identity provider gave to CENTURY.

    Minimum length is 1, maximum length is 255.

  • clientSecret string

    The client secret that the identity provider gave to CENTURY. It is write-only: no response contains it.

    Minimum length is 1, maximum length is 1024.

  • scopes array[string]

    The OIDC scopes that CENTURY requests at sign-in. The list must include openid. If you omit the field, the scopes of the provider do not change.

    At least 1 but not more than 20 elements. Maximum length of each is 64. Format of each should match the following pattern: ^[\x21\x23-\x5B\x5D-\x7E]+$.

Responses

  • 200 application/json

    SSO provider updated successfully.

    Hide response attribute Show response attribute object
    • ssoProvider object Required
      Hide ssoProvider attributes Show ssoProvider attributes object
      • providerId string Required

        SSO provider ID. CENTURY makes it from the domain of the provider, and it does not change. It has lower case letters, digits and single hyphens only.

        Maximum length is 227. Format should match the following pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$.

      • domain string Required

        The email domain of the provider, for example school.example. It is a bare domain with no scheme, path or @. CENTURY keeps it in lower case.

      • issuer string Required

        The OIDC issuer of the identity provider.

      • clientId string Required

        The client ID that the identity provider gave to CENTURY.

      • scopes array[string]

        The OIDC scopes that CENTURY requests at sign-in.

      • domainVerified boolean Required

        Whether the domain is verified. A provider with an unverified domain cannot be used for sign-in. Only the domain verification check changes this value.

      • createdAt string(date-time) Required

        The date and time when the provider was registered.

  • 400

    Invalid request.

  • 401

    Invalid authentication credentials

  • 403

    Not authorised to access this resource. The SSO provider operations are in preview and by invitation only: an organisation that is not in the preview gets this response.

  • 404

    SSO provider not found.

  • 422

    OIDC discovery failed for the issuer. The response gives no cause. The causes are: the discovery document is not found or is not valid, the issuer in the document is different, an endpoint in the document is not https://, or the host of the issuer is not public or has no address. To find the cause, open {issuer}/.well-known/openid-configuration in a browser. A temporary DNS failure also gives this response, so you can send the request again.

  • 501

    Not available in this environment.

  • 502

    The SSO service is not available.

PATCH /sso-providers/{providerId}
curl \
 --request PATCH 'https://connect.century.tech/api/v1/sso-providers/school-example' \
 --header "x-api-key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{
  "issuer": "https://idp.school.example",
  "clientId": "century-sso",
  "clientSecret": "your-client-secret",
  "scopes": [
    "openid",
    "email",
    "profile"
  ]
}'
Request examples
{
  "issuer": "https://idp.school.example",
  "clientId": "century-sso",
  "clientSecret": "your-client-secret",
  "scopes": [
    "openid",
    "email",
    "profile"
  ]
}
Response examples (200)
{
  "ssoProvider": {
    "providerId": "school-example",
    "domain": "school.example",
    "issuer": "https://idp.school.example",
    "clientId": "century-sso",
    "scopes": [
      "openid",
      "email",
      "profile"
    ],
    "domainVerified": false,
    "createdAt": "2026-11-24T09:30:00.000Z"
  }
}