Skip to main content

Single sign-on

Route/ade/dashboard/sso

Single sign-on lets everyone at your company sign in to Apiome with their work account, through your own identity provider (IdP) — Okta, Microsoft Entra ID, Google Workspace, Keycloak, Auth0 or any other that speaks SAML 2.0 or OpenID Connect (OIDC). You set it up in three steps: connect the IdP, verify an email domain you own, and enable the provider. Go to Workspace → Single sign-on.

Single sign-on: Northwind Okta (OIDC, northwind.io verified, 42 members, Live) and Northwind Entra ID (SAML 2.0, northwind.co.uk not verified, Disabled), with Add provider in the headerSingle sign-on: Northwind Okta (OIDC, northwind.io verified, 42 members, Live) and Northwind Entra ID (SAML 2.0, northwind.co.uk not verified, Disabled), with Add provider in the header
Route/ade/dashboard/sso

The page is for workspace owners and admins. Everyone else sees Owners and admins only.

Each provider in the list shows its protocol, its domains and how many are verified, how many members have signed in through it, and one of three states:

StateWhat it means
LiveEnabled, with at least one verified domain. People at those domains are sent to it when they sign in
Needs a verified domainEnabled, but no domain is verified yet, so nobody is sent to it
DisabledOff. Nobody is sent to it

Connect your identity provider​

Use whichever protocol your IdP offers — most offer both.

OIDCSAML 2.0
You give ApiomeThe issuer URL, a client ID and a client secretThe IdP's metadata URL, or its metadata XML pasted in
You give the IdPThe Redirect URI Apiome showsThe ACS URL and the SP entity ID Apiome shows
Where the email comes fromThe ID token's email — the IdP must mark it verifiedThe NameID, or an attribute you name
  1. Click “Add provider”.

  2. Choose OIDC or SAML 2.0, and give it a Name — for example Northwind Okta. The ID fills in from the name; it appears in sign-in URLs and in the audit trail as sso:<id>.

  3. For OIDC, enter the Issuer URL (for example https://northwind.okta.com), the Client ID and the Client secret from the app you registered at the IdP. Apiome reads the issuer's discovery document and checks it before saving.

    For SAML 2.0, enter the IdP metadata URL or paste the IdP metadata XML, then choose where the email address comes from: The NameID, or An attribute and its name (for example mail). Add an SP signing key only if your IdP requires signed sign-in requests.

  4. Choose a Default role — the role a member gets the first time they sign in through this provider — or leave Workspace default, which is Viewer. Owner is not offered. See Who becomes a member.

  5. Click “Add provider”. The provider is added Disabled and its drawer opens.

The client secret and the signing key are stored encrypted and never shown again.

Apiome refuses an IdP it could never sign anyone in through, and says why — for example a discovery document that names a different issuer, or an IdP that offers single sign-on only over HTTP-Artifact.

Give the IdP its values​

Click a provider's name to open its drawer. The Configure tab starts with what your IdP's app settings need — the Redirect URI for OIDC, or the ACS URL (reply URL) and SP entity ID (audience) for SAML — each with a “Copy” button.

The Northwind Entra ID drawer on Configure: ACS URL, SP entity ID and SP metadata with Copy buttons, then Name, IdP metadata URL and XML, Email address comes from, SP signing key and Default roleThe Northwind Entra ID drawer on Configure: ACS URL, SP entity ID and SP metadata with Copy buttons, then Name, IdP metadata URL and XML, Email address comes from, SP signing key and Default role
Route/ade/dashboard/sso

Below them you can change the provider's settings. Leave Client secret, SP signing key and the two metadata fields blank to keep what is stored — Apiome never reads a secret back. Click “Save changes” when you are done.

Verify a domain​

An IdP may only sign in addresses at domains you have proved you own. Until a domain is verified, it sends no one anywhere.

  1. In the provider's drawer, click the “Domains” tab.

  2. Type your email domain in Add a domain — for example northwind.io — and click “Add domain”.

  3. At your DNS provider, add the TXT record the row shows. “Copy” copies each value:

    FieldValue
    TypeTXT
    Name_apiome-challenge.northwind.io
    ValueThe token shown for the domain
  4. Click “Verify”. Apiome looks the record up and tells you what it found.

The Domains tab: northwind.co.uk, Not verified, with its TXT record name and value, a Verify button and a Could not check result showing the DNS answerThe Domains tab: northwind.co.uk, Not verified, with its TXT record name and value, a Verify button and a Could not check result showing the DNS answer
Route/ade/dashboard/sso
ResultWhat it meansWhat to do
VerifiedThe record holds the token. The domain now routes sign-insNothing — you can remove the DNS record
Record not foundThere is no TXT record at that name yetCheck the record name, wait for DNS to update and try again
Record has another valueA TXT record is there, but it is not this token. The answer is shownReplace it with the value shown
Could not checkThe lookup itself failed — a timeout, or the DNS servers did not answer. The answer is shownNothing was changed. Try again in a few minutes

A domain is never marked verified unless the lookup succeeded and found the token.

You can check a domain three times an hour. After that, Apiome tells you how long to wait.

Apiome refuses some domains outright:

  • Public email providers — gmail.com, outlook.com, yahoo.com and the like. Add a domain your organization owns.
  • A domain another workspace has verified. A domain signs in through one identity provider only. If you own the domain, ask whoever verified it to remove it.

Adding a domain without verifying it reserves nothing: someone else who can prove the domain may still verify it first.

Click “Remove” beside a domain to take it off the provider. Sign-ins from it stop at once.

Turn it on​

Click “Enable” at the foot of the drawer. The provider becomes Live as soon as it is enabled and has a verified domain.

From then on, when someone types a work email at one of your verified domains on the sign-in page, the password field gives way to “Continue with SSO”, which takes them to your IdP.

Click “Disable” to stop it. The very next sign-in no longer goes to the IdP.

Who becomes a member​

A provider belongs to your workspace, so signing in through it is how people join. You do not invite them first.

The first time someone at one of your verified domains signs in through the provider, Apiome creates their account if they have none, adds them to this workspace as an active member with the provider's Default role, and takes them straight to the workspace's Home. They are not asked to create a workspace of their own.

What a sign-in does depends on the membership the person already has:

The person is…What signing in does
Not a memberAdds them with the provider's Default role (Viewer when it is Workspace default)
Invited (pending)Accepts the invitation. They keep the role they were invited with
Already a memberNothing changes. They keep their role — signing in never lowers or raises it
SuspendedNothing changes. They stay suspended until an owner or admin reinstates them on Members & seats
  • Owner is never given by signing in. Make someone an owner on Members & seats.
  • Only this workspace. A provider adds people to the workspace it belongs to and to no other. Someone who works with two companies can be a member of both, each through that company's own provider.
  • You can see who joined this way. On Members & seats, a member added by single sign-on shows SSO · and the provider's name under Joined, and their drawer shows it as Provisioned by.
  • If your installation is closed to new sign-ups, a person with no Apiome account cannot join this way. Ask your administrator about the sign-up policy.

When the workspace is out of seats​

Each new member takes one of your plan's member seats. Pending invitations hold a seat; suspended members do not.

When every seat is in use and someone who is not yet a member signs in:

  1. Their sign-in completes, but they are not added to the workspace.

  2. They see Your workspace is out of seats, which tells them the owners have been notified.

    Your workspace is out of seats: You signed in, but Northwind has no member seat left, so you were not added to it. The owners have been notified. A Sign out buttonYour workspace is out of seats: You signed in, but Northwind has no member seat left, so you were not added to it. The owners have been notified. A Sign out button
    Route/login/out-of-seats
  3. Every owner and administrator of the workspace gets a notification naming the person — once per person per day, however often they try.

  4. The block is recorded in the access audit as member.provision_blocked.

To let them in, free a seat on Members & seats — offboard or suspend someone, or cancel an invitation — or change the plan. The next time the person signs in they are added. People who are already members sign in as usual while the workspace is full.

Remove a provider​

  1. Click “Remove…” at the foot of the drawer. Apiome tells you how many members have signed in through the provider.
  2. Click “Remove” followed by the provider's name to confirm, or “Keep it” to go back.

Removing a provider deletes its domains and its stored secrets. Members who signed in through it keep their accounts, but can no longer sign in this way — make sure they have a password or another sign-in method first.

What is recorded​

Every change on this page is written to the workspace's access audit, with who made it:

ActionWhen
sso.provider.createdA provider is added
sso.provider.updatedSettings change, the provider is enabled or disabled, or a domain is added or removed
sso.domain.verifiedA domain passes its DNS check
sso.provider.deletedA provider is removed
member.provisionedSomeone is added to the workspace by signing in, or accepts an invitation that way. The source is sso
member.provision_blockedSomeone signed in but was not added, because every member seat was in use. The source is sso

No secret is ever written to the audit. Sign-in attempts themselves are recorded separately, as sso:<id>.

When something is refused​

CodeWhat it meansWhat to do
sso-domain-publicThe domain is a public email providerAdd a domain your organization owns
sso-domain-claimedAnother workspace has verified this domainAsk its owner to remove it there
sso-domain-existsThe provider already lists this domainNothing to add
sso-domain-invalidThat is not an email domain such as acme.comCheck the spelling; wildcards are not accepted
sso-verify-rate-limitedThe domain was checked three times in the last hourWait as long as the message says
sso-default-role-invalidThe default role is Owner, or not a role of this workspaceChoose another role
sso-enable-incompleteAn OIDC provider has no client secretAdd the client secret on Configure, then enable
sso-slug-takenAnother provider already uses that IDChoose a different ID

What happens when someone signs in, and the codes a failed sign-in shows, are on the admin guide's Single sign-on page.

For operators​

  • Single sign-on needs AUTH_CONFIG_ENC_KEY and INTERNAL_SERVICE_TOKEN set, as described under For operators in the admin guide.
  • APIOME_SSO_PUBLIC_DOMAINS on apiome-rest replaces the built-in list of public email providers with your own comma-separated list.
  • Domain checks use the DNS resolvers of the machine apiome-rest runs on.
  • Members are added by apiome-ui calling apiome-rest with INTERNAL_SERVICE_TOKEN after each single sign-on. If that call gets no answer, people who are already members still sign in; anyone else sees You signed in, but we could not add you to your workspace just now and can try again.
  • Setting APIOME_LICENSE_ENFORCEMENT_ENABLED=false on apiome-rest switches the member-seat limit off for single sign-on too.
  • The installation administrator can still connect a provider for any workspace, and mark a domain verified without a DNS record, from the admin console's Single sign-on card.
  • The same operations are available over the REST API: /v1/tenants/{tenant}/sso/providers.