> For the complete documentation index, see [llms.txt](https://docs.connect.century.tech/draft/llms.txt)

# Create SSO Provider

> POST /sso-providers
> 
> 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.



## Servers
- Production: https://connect.century.tech/api/v1 (Production)


## Authentication methods
- Api key


## Parameters



### Body: application/json (object)

- **domain** (string)
  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.

- **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.

- **clientId** (string)
  The client ID that the identity provider gave to CENTURY.

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

- **scopes** (array[string])
  The OIDC scopes that CENTURY requests at sign-in. The list must include `openid`. If you omit the field, CENTURY requests `openid`, `email`, `profile` and `offline_access`.



## Responses
### 201
SSO provider created successfully.

#### Body: application/json (object)
- **ssoProvider** (object)


### 400
Invalid request.

### 401
Invalid authentication credentials

### 403
Not authorised to access this resource

### 409
SSO provider already exists for the domain.

### 422
OIDC discovery validation failed.


[Powered by Bump.sh](https://bump.sh)
