Skip to documentation
Documentation

Enterprise SAML SSO

Let your team sign in to Keiki through your own identity provider.

Keiki supports SAML 2.0 single sign-on for your organization. Owners and admins set it up through Keiki Code Mode (GET /sso, POST /sso/domains, POST /sso/setup-link, PATCH /sso). SSO is available on qualifying enterprise plans.

Domain claims, DNS rechecks, listing, and deletion do not require an SSO plan or minimum spend; they still require an owner or admin. Verified domains also authorize iMessage card-app link hosts. IdP setup, setup links, testing, activation, and enforcement remain SSO-eligibility gated. A pending claim does not reserve the domain: several organizations may hold one, and the first whose TXT record resolves owns it. Once verified, nobody else can claim the domain. Claiming a domain does not activate SSO. For an already-active SSO connection, adding a verified email domain extends that connection's login routing and admission, including enforcement if enabled.

GET /sso returns domains and verificationRecord even when the organization is ineligible or billing is unavailable. During a billing outage, eligibility is null and eligibilityError is billing_unavailable; do not treat this as an eligibility verdict.

Set up SSO

  1. Connect Keiki Code Mode as an owner or admin.
  2. Add each company email domain with POST /sso/domains. Publish the TXT value Keiki returns at the domain root, then call POST /sso/domains again with the same domain to verify it.
  3. Create a setup link and send it to your identity provider administrator. The link expires after 24 hours and works once.
  4. On the setup page, download Keiki's SP metadata, or copy the entity ID and ACS URL.
  5. Import your identity provider's metadata by URL or XML. To enter it by hand you need the entity ID, the HTTPS SSO URL and the signing certificate.
  6. Back in Keiki, test sign-in, activate the connection, pick the default role for new users, and require SSO if you want it.

Requiring SSO only applies to domains you have verified, and owners can always still sign in with a password. SSO sessions last 12 hours.

Custom iMessage app cards require link hosts covered by your organization's verified SSO domains. Add and verify the domain using POST /sso/domains and the returned keiki-sso-verify= TXT record before setting features.card_app.url_hosts. A verified parent domain covers itself and its subdomains on label boundaries; verification by another organization does not count. Pending domains do not count. Config writes and custom-card delivery check the stored verification timestamp, without a DNS lookup on every send. Removing the verified domain prevents further custom-card delivery for those hosts. Vault cards are unaffected.

When a dashboard session ends

The dashboard confirms authentication failures against Keiki's session endpoint; an integration's expired credential alone does not sign you out. When your session ends or another tab changes the account or organization, a sign-in dialog keeps the current page mounted, including unsaved editor text and setup progress. Background dashboard requests and the live stream pause.

Keep the original tab open. Select Sign in in another tab, sign in with the same account and select the original organization, then return and select Check again. The sign-in link carries the original path, query and anchor, except for the apiKey query parameter, which is never copied into the sign-in link. The link also suppresses the original URL's referrer. The original tab's URL and mounted page are unchanged. After verification, reads refresh; failed actions are not automatically retried. Unsaved work is retained in the original tab's memory, not saved by this recovery flow: closing or reloading that tab can still discard it.

If an organization switch fails, its error remains visible after the menu closes. An unconfirmed switch is not reported as successful or automatically retried.

Okta

  1. Create a SAML 2.0 app integration.
  2. Import Keiki's SP metadata, or set the Single sign-on URL to the ACS URL and the Audience URI to the SP entity ID.
  3. Use EmailAddress for the Name ID format, and the user's email as the application username.
  4. Sign assertions with SHA-256. Keiki does not require the response itself to be signed.
  5. Assign the users or groups you want.
  6. Copy Okta's Identity Provider metadata URL into the Keiki setup page.

Microsoft Entra ID

  1. Create an Enterprise application, then choose Set up single sign-on → SAML.
  2. Set Identifier (Entity ID) to Keiki's SP entity ID, and Reply URL (ACS URL) to Keiki's ACS URL.
  3. Set the unique user identifier to user.mail, or to another claim that always contains the verified work email.
  4. Download Federation Metadata XML and paste it into Keiki, or use its metadata URL.
  5. Assign users or groups before you test.

Google Workspace

  1. In the Admin console, add a Custom SAML app.
  2. Download Google's IdP metadata and paste it into Keiki.
  3. Enter Keiki's ACS URL and Entity ID.
  4. Choose EMAIL as the Name ID format and Primary email as the Name ID.
  5. Enable the app for the organizational units or groups you want, then test.

Security

  • Sign-in always starts from Keiki.
  • Keiki pins the signing certificate you configure.
  • Assertions must be signed, and each response must contain exactly one.
  • Audience, destination, recipient, timestamps and request correlation are all checked. A used assertion cannot be replayed.
  • The asserted email must belong to a domain you have verified.
  • IdP metadata must be served over HTTPS from a public address.
  • Setup links expire after 24 hours and can be used once.