Register an OIDC identity provider for an email domain. CENTURY reads the discovery document of the issuer before it keeps the provider. A new provider has an unverified domain and cannot be used for sign-in until the domain is verified.
Body
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. Each part between two dots starts and ends with a letter or a digit, and the last part starts with a letter. Each part has a maximum of 63 characters.Minimum length is
1, maximum length is227. Format should match the following pattern:^(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9]$. -
The OIDC issuer of the identity provider. It must be an HTTPS URL, and it must be the same as the
issuerin 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.Maximum length is
2048. Format should match the following pattern:^https:\/\/[A-Za-z0-9.-]+(?:\/[!-"$->@-[\]-~]*)?$. -
The client ID that the identity provider gave to CENTURY.
Minimum length is
1, maximum length is255. -
The client secret that the identity provider gave to CENTURY. It is write-only: no response contains it.
Minimum length is
1, maximum length is1024. -
The OIDC scopes that CENTURY requests at sign-in. The list must include
openid. If you omit the field, CENTURY requestsopenid,email,profileandoffline_access.At least
1but not more than20elements. Maximum length of each is64. Format of each should match the following pattern:^[\x21\x23-\x5B\x5D-\x7E]+$.
curl \
--request POST 'https://connect.century.tech/api/v1/sso-providers' \
--header "x-api-key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"domain": "school.example",
"issuer": "https://idp.school.example",
"clientId": "century-sso",
"clientSecret": "your-client-secret",
"scopes": [
"openid",
"email",
"profile"
]
}'
{
"domain": "school.example",
"issuer": "https://idp.school.example",
"clientId": "century-sso",
"clientSecret": "your-client-secret",
"scopes": [
"openid",
"email",
"profile"
]
}
{
"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"
}
}