Single sign-on
On Enterprise, a workspace's people sign in through the organization's own identity provider, any that speaks OpenID Connect or SAML 2.0, and the provider's groups give their roles. An Owner sets it up in Settings, under Single sign-on, in three steps.
1. Register this service at your provider, as a public client that signs in with PKCE and has no client secret. The service never asks for a secret, so none is kept in the cloud. Its sign-in redirect address is shown there to copy:
https://orbstrata.com/api/auth/sso/callback
Have the provider send the person's address in the ID token's email claim, and their groups in a claim of their own (groups unless you name another).
2. Tell the workspace about it: your email domain, the provider's issuer (exactly as its /.well-known/openid-configuration names it: saving checks that it answers as itself), the client id, the scopes (openid email profile unless the provider needs more), the groups claim, and which group gives which role. The first row whose group the person is in gives their role; with none, they take the role chosen for no match.
3. Prove the domain: add the TXT record shown at your DNS host, then choose Verify. It looks like this, with the value Settings shows:
_orbstrata-verify.example.com TXT "orbstrata-verify=<the value shown>"
Until it is found, no one is sent to the provider. A domain one workspace has proven, no other can.
A provider that speaks only SAML 2.0 (an older ADFS, some on-premises providers) is set up the same way: choose SAML 2.0 in Single sign-on. Step 1 shows this service's entity id (also the address of its metadata, which most providers can read) and its assertion consumer, to add at the provider as a SAML application, a relying party trust in ADFS:
https://orbstrata.com/saml/metadata https://orbstrata.com/saml/acs
Have it sign its assertions with SHA-256, send the person's address as the NameID (or in an email attribute), and their groups in an attribute of their own (groups unless you name another). In step 2 save the provider's entity id, its sign-in address and the certificate it signs with: paste it whole, from -----BEGIN CERTIFICATE-----. The domain is proven, the groups give roles and the switch to require it works as above. An assertion counts only when that certificate signed it, it names this service and that provider, it answers the sign-in begun here, in the same browser, and its time has not run out; anything else signs no one in, and the sign-in page says why. Encrypted assertions are not read: leave encryption off.
Then Continue with SSO, on the sign-in page, takes an address at that domain to the provider. On each sign-in through it:
- A person with no account gets one, confirmed, and joins the workspace in the role their groups give.
- A member takes the role their groups give now, so a change at the provider reaches here at their next sign-in. The workspace's last Owner stays Owner whatever the groups say.
- An address outside the domain, a token the provider's keys did not sign, a token meant for another client, and a sign-in begun in another browser sign no one in, and the sign-in page says why.
- An account at the domain whose address was never confirmed is confirmed, and the password chosen before that stops working, with every session it opened.
Require single sign-on, once someone has signed in through it (so a mistaken setting cannot lock everyone out), means an address at the domain can no longer sign in with a password or Google, sign up, or reset a password, and its sessions that began those ways end. Remove single sign-on stops it all; the domain must be proven again to set it up again.
4. Provisioning (SCIM), optional: the provider tells the workspace at once who joins, who leaves and which groups they are in, so nobody waits for a sign-in. Choose Make a token and give your provider the two values shown: the SCIM base URL and the token. The token is shown once, and a new one ends the one before it.
https://orbstrata.com/scim/v2
- In Okta, add SCIM provisioning to the app (SCIM 2.0, the base URL, HTTP header authentication with the token) and turn on creating users, deactivating users and pushing groups. In Entra ID, the enterprise application's Provisioning, automatic, with the base URL as the tenant URL and the token as the secret token.
- A person assigned becomes a member at once, in the role their groups give, if their address is at the proven domain.
- A person deactivated or unassigned leaves the workspace at once, as Remove in People does: their sessions here end, their API tokens and agents are revoked, and the apps they connected are disconnected. A workspace's last Owner is never removed this way.
- A group pushed gives its members the role its row above says, at once. A provider that sends no groups in its ID token keeps the groups it pushed when the person signs in.
Without provisioning, taking someone out at the provider stops their next sign-in through it, not a session they already have: remove them in People to end their access at once.