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

# SSO Providers

> The SSO Providers operations let a school register its own identity provider (IdP), so that people with an email address at the domain of the school can sign in to CENTURY with single sign-on. CENTURY supports OpenID Connect (OIDC) providers.
> 
> **These operations are a draft and are not available yet.** Each operation responds with `501 Not Implemented`. The contract can change before release.
> 
> ## How to set up single sign-on
> 
> 1. **Register the provider.** Send the email domain, the issuer, the client ID and the client secret with [Create SSO Provider](#operation-createSsoProvider). CENTURY reads the OIDC discovery document of the issuer. If the document is not valid, the response is `422`. The response gives the `providerId`, which CENTURY makes from the domain and which does not change.
> 2. **Get the verification record.** [Get SSO Provider Domain Verification](#operation-getSsoProviderDomainVerification) gives a DNS `TXT` record.
> 3. **Publish the record.** Add the record at the DNS host of the domain. This proves that the school controls the domain.
> 4. **Check the verification.** Call [Check SSO Provider Domain Verification](#operation-checkSsoProviderDomainVerification). When the record is found, the domain is verified and sign-in can start. You can remove the record after that.
> 
> ## Rules
> 
> - One provider holds one domain, and one domain has one provider. A school with two email domains registers two providers.
> - A subdomain is a different domain. The provider for `school.example` does not sign in addresses at `pupils.school.example`.
> - The domain of a provider cannot change. To use a different domain, delete the provider and register a new one.
> - A provider with an unverified domain cannot be used for sign-in.
> - The issuer is an HTTPS URL with a public DNS host name. It has no user name, port, query or fragment.
> - The scopes are optional. If you send them, they must include `openid`.
> - The client secret is write-only. No response contains it.

## Operations

- [Create SSO Provider](https://docs.connect.century.tech/draft/operation/operation-createssoprovider.md)

- [Get SSO Provider](https://docs.connect.century.tech/draft/operation/operation-getssoprovider.md)

- [Delete SSO Provider](https://docs.connect.century.tech/draft/operation/operation-deletessoprovider.md)

- [Update SSO Provider](https://docs.connect.century.tech/draft/operation/operation-updatessoprovider.md)

- [Get SSO Provider Domain Verification](https://docs.connect.century.tech/draft/operation/operation-getssoproviderdomainverification.md)

- [Check SSO Provider Domain Verification](https://docs.connect.century.tech/draft/operation/operation-checkssoproviderdomainverification.md)


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