identity:manage,
which only the owner role holds and which cannot be granted to an API key.
Admins can read the configuration and nothing more. Single sign-on is also a
plan feature (sso), and the plan is checked when you save a
configuration, never at sign-in, so a plan that lapses later does not lock
anyone out.
Everything below is under Settings → Identity in the dashboard. The API
calls are shown for each step because the same endpoints back the screen.
1. Verify your domain
A domain decides which sign-ins are routed to your provider and which addresses your provider is allowed to assert. Nothing about a domain takes effect until you have proved you control it.1
Claim the domain
Under Verified domains, add the domain (ASCII only; an
internationalized domain goes in as punycode).The response carries the claim, with its
verification_token, and an
instructions string naming the exact record to publish.2
Publish the TXT record
Create a DNS
TXT record at the domain itself whose value is
trustivan-domain-verification= followed by the token. The dashboard shows
the record name and value with copy buttons, and
GET /api/v1/identity/domains returns the prefix as txt_record_prefix.3
Verify
Select Verify, or call the endpoint. The domain shows A
awaiting DNS
until the record is visible and verified afterwards.400 means the record was not found or DNS could not be read; wait for
propagation and try again. Verifying is idempotent.Two organizations may claim the same domain, but only one can verify it. If
another organization already has, verification answers
409 and never says
who.2. Register TRUSTIVAN with your identity provider
Your provider needs to know where to send people back. Read the values from your deployment instead of typing them from this page: the dashboard shows them at the top of the Single sign-on card, andGET /api/v1/identity/provider
returns them even before anything is configured.
3. Configure the provider
An organization has one provider, and it is either OIDC or SAML. Saving a configuration builds the provider from it, so a configuration that saves is one that can authenticate, and an incomplete one is refused with a400 that names
the missing field.
- OIDC
- SAML
client_secret is its own field, not part of config. It is stored
encrypted and no response ever returns it. Leave it out of a later PUT to
keep the stored one, so changing the display name does not mean re-entering
it.https. Three fields apply to both protocols:
4. Test a sign-in
Open the sign-in page in a private window, enter an address at the verified domain and select Continue with SSO. The page asks the API where to send you:"sso": false means no enabled provider is routed for that domain. The answer
is deliberately the same for an unverified domain, a disabled provider and a
domain nobody has claimed.
A sign-in that fails shows the person one generic error. The reason is in your
own audit trail, under Settings → Audit log or GET /api/v1/identity/audit,
where a refused assertion is recorded with what was wrong. Check there first.
Your provider must assert an address inside a domain you verified. An assertion
for any other address is refused, whatever the provider says.
5. Map directory groups to roles
A group appears under Directory groups once a sign-in assertion names it, and grants nothing until you map it. A mapping can raise someone above the default role; it never lowers them below it.granted_role is viewer, member, admin, or an empty string to clear the
mapping. owner is refused.
6. Require single sign-on
Do this last, after at least one owner has signed in through the provider. Turn on Require single sign-on, or send the samePUT as before with
"enforced": true.
Once it is required, a password or social sign-in for an address in your
verified domain is refused with sso_required, and existing password sessions
end at their next renewal.
Turning it off
GET /api/v1/identity/identities is the access review: who can sign in through
the directory, as whom, and when they last did.
See also
- Provision users with SCIM: have your directory create and remove access.
- Tenancy and isolation: how seats, just-in-time accounts and enforcement interact.
- Audit trail: what identity changes are recorded.