Company sign-in (SSO) and SCIM
The technical side of signing in with a company account and of provisioning people from an identity provider. The step-by-step setup in Entra, Google, Okta and others is in the Manage handbook: company sign-in and SCIM.
Company sign-in
Section titled “Company sign-in”Per organisation, under Manage → Sign-in (/v1/admin/sso, organisation administrators). The platform’s operator must allow company sign-in for the installation; otherwise these routes answer 403 org_sign_in_disabled.
| Provider | Protocol | What Academy needs |
|---|---|---|
| Microsoft Entra ID | OpenID Connect | directory (tenant) id, client id, client secret |
| Google Workspace | OpenID Connect | client id, client secret |
| Any OpenID Connect provider (Okta, Keycloak, Auth0, …) | OpenID Connect | issuer, client id, client secret |
| Any SAML 2.0 identity provider | SAML 2.0 | the IdP’s metadata XML, the attribute names for email and display name |
OpenID Connect
Section titled “OpenID Connect”- Redirect URI:
https://<api>/v1/auth/sso/callback, the same for every connection. - Flow: authorization code with PKCE (S256), scope
openid email profile. The provider’s/.well-known/openid-configurationis read from the issuer and must name exactly that issuer. Microsoft’s issuer ishttps://login.microsoftonline.com/<tenant id>/v2.0, Google’shttps://accounts.google.com. - Who signs in: Microsoft: the token’s
tidmust be the configured tenant; the person is theoid, the addressemailor elsepreferred_username. Google: the token must carryhdandemail_verified. Other providers:email, withemail_verifiedmarking it as verified. An Entragroupsclaim updates the teams that follow those groups. - The client secret is sent in the token request’s body. Academy emails the administrators 30 days before the secret’s expiry date you entered.
SAML 2.0
Section titled “SAML 2.0”| Value for the identity provider | Address |
|---|---|
| Entity ID and metadata | https://<api>/v1/auth/saml/<connection id>/metadata |
| Assertion consumer service (HTTP-POST) | https://<api>/v1/auth/saml/<connection id>/acs |
| Sign-in start | https://<api>/v1/auth/saml/<connection id>/start |
- Academy’s metadata carries its own key (RSA 3072, valid 5 years) for signing requests and for encrypted assertions.
- The IdP’s metadata must have exactly one HTTP-Redirect single sign-on endpoint and 1 to 5 RSA certificates of at least 2,048 bits, at least one of them current.
- Assertions must be signed (SHA-256, SHA-512 or RSA-PSS), at most 5 minutes old, with 30 seconds of clock skew allowed. They may be encrypted. NameID formats: persistent, unspecified or email address.
- SAML connections don’t read groups.
Proving email domains
Section titled “Proving email domains”Only addresses in proven domains sign in through a connection, and a domain belongs to one organisation only. For each domain Academy shows a TXT record:
_i3-academy.example.com. TXT "i3-academy-verify=3f9c…"The value must match exactly (chunks of a long TXT record are joined). A missing record is 422 dns_record_missing; a domain another organisation proved is 409 domain_taken. Changing a connection’s issuer or tenant withdraws its proofs and issues new values. A connection can be switched on only after a passed test and with a proven domain.
Starting a sign-in
Section titled “Starting a sign-in”GET /v1/auth/sso/discover?email=ada@example.comanswers{"startUrl": …}when the address’s domain has a connection, so a sign-in page can offer the right button.https://<portal>/login?org=<slug>opens the organisation’s sign-in.- Company sign-in only binds everyone with an address in a proven domain, administrators too (ADR 0432).
SCIM 2.0
Section titled “SCIM 2.0”Identity providers (Entra, Okta, OneLogin, JumpCloud and others) create, change and suspend people and keep teams in step.
- Base URL:
https://<api>/scim/v2(no/v1). - Token: organisation administrators create one under Manage → Sign-in → Automatic provisioning (SCIM) (
POST /v1/admin/scim/tokens). It looks likescim_<cell>_…, is shown once, and acts with its creator’s current roles. Send it asAuthorization: Bearer scim_…; without it, even the discovery endpoints answer401. When the organisation’s contract has ended, SCIM answers403. - Media type:
application/scim+json(plain JSON is accepted).
| Resource | Methods |
|---|---|
/Users |
GET (list, filter), POST |
/Users/{id} |
GET, PUT, PATCH, DELETE |
/Groups |
GET (list, filter, excludedAttributes=members), POST |
/Groups/{id} |
GET, PUT, PATCH, DELETE |
/ServiceProviderConfig, /ResourceTypes, /Schemas |
GET |
userName(or else the primary address inemails) must be an email address in one of the organisation’s proven domains. New people join as learners;active: falsecreates them suspended.PATCHwithaddorreplacechangesactive,displayName,name.formatted,name.givenName,name.familyName,externalId,title, and from the enterprise extensiondepartment,employeeNumberandmanager(manager.valueis the manager’s SCIM id).removeclears employment fields.userNameandemailsare not changed through SCIM, and other paths are ignored.PUTreplaces the user: employment fields left out are cleared.DELETEsuspends the person in the organisation; their learning history stays.- Fields an HR connector leads are left as the HR system has them.
- External learners, LMS guests and erased people are not listed.
- Enterprise extension:
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.
Groups
Section titled “Groups”A group is a team kept by SCIM. PATCH handles displayName, externalId and members (add, remove, replace, also members[value eq "<id>"]) and answers 204. Deleting a group removes its members; a team that has training records stays, as a team kept by hand.
Filters and pages
Section titled “Filters and pages”- Filters: only
eq, for users onuserName,emails.value,externalIdorid, for groups ondisplayNameorexternalId. That is what Entra and Okta use. - Pages:
startIndex(from 1) andcount(default 100, at most 200). - Not supported: bulk, sorting, ETags and password changes (
ServiceProviderConfigsays so).
Teams from the directory
Section titled “Teams from the directory”Besides SCIM, a team can follow a group directly (POST /v1/teams with directory: {connectionId, groupId}):
- Microsoft Entra, through the sign-in’s own app registration with the application permissions
GroupMember.Read.AllandUser.Read.All: members of the group and its nested groups, withjobTitle,department,officeLocation,employeeIdandmanager. - Google Workspace, through a service account with domain-wide delegation and the scopes
admin.directory.group.readonlyandadmin.directory.group.member.readonly(PUT /v1/admin/sso/connections/{id}/directory): members including nested groups, no employment data.
Teams sync daily and with POST /v1/teams/{id}/sync. Only people with addresses in proven domains are taken; people who never signed in get an account so their trainings start; members the sync added leave when they leave the group.