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
- Register the provider. Send the email domain, the issuer, the client ID and the client secret with Create SSO Provider. CENTURY reads the OIDC discovery document of the issuer. If the document is not valid, the response is
422. The response gives theproviderId, which CENTURY makes from the domain and which does not change. - Get the verification record. Get SSO Provider Domain Verification gives a DNS
TXTrecord. - Publish the record. Add the record at the DNS host of the domain. This proves that the school controls the domain.
- Check the verification. Call Check SSO Provider Domain Verification. 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.exampledoes not sign in addresses atpupils.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.