Skip to content
AISpendbook

Security & legal

SSO, MFA, SCIM & keys

Set up SAML or OIDC single sign-on, required two-step verification, SCIM provisioning and scoped read keys.

Required two-step verification is available on every plan; single sign-on and SCIM provisioning come with the Business plan. A workspace owner sets each one up in the app: SSO with your identity provider, two-step verification with an authenticator app. Read keys for your own tools are covered at the end.

Single sign-on (SAML or OIDC)

  1. An owner opens Settings, Security, Sign-in rules and saves the company email domain. The page shows a DNS TXT record to add on that domain, aispendbook-domain-verification=<token>. Verify checks it. An unverified domain sends nobody to SSO.
  2. Under “Your SAML or OIDC provider” the owner copies the ACS URL (also the OIDC redirect URI) and SP entity id into Okta, Microsoft Entra ID, Google Workspace or another provider, then enters the IdP entity id, SSO URL and signing certificate (SAML) or the issuer, client id and client secret (OIDC). The client secret is stored encrypted and never shown again.
  3. “Test sign-in” signs in through the provider in a separate window and reports whether it worked, without touching the owner's session.
  4. The owner signs out and signs in with “Sign in with SSO”, which finds the provider from the email domain.
  5. Signed in through SSO, the owner turns on “Require single sign-on”. From then on, a request signed in another way is refused with a message to sign in with SSO.
  • An owner can claim only their own email domain. The first workspace to verify it by DNS holds it; removing the domain releases it. One provider per workspace.
  • Workspaces with an approved link to the same firm (a company group) can each verify the same email domain. “Sign in with SSO” then lists those workspaces and the person picks one. Any other workspace is still refused.
  • Each verified domain's TXT record is checked again every day. When it is missing, owners are alerted and the domain shows a warning; after 7 days missing, the domain stops routing sign-ins and shows Stopped. When the record is back (at the daily check or on Verify), routing is restored.
  • Only an owner signed in through one of the providers can turn on the requirement, so nobody locks themselves out. Sign-in is by pop-up.

Required two-step verification

  1. Each member opens Settings, Account, chooses “Set up an authenticator app” and scans the code. The sign-in page then asks for the 6-digit code.
  2. An owner signed in with a code turns on “Require two-step verification” in Settings, Security.
  • Members whose sign-in had no second step are refused, and the app shows a notice with a link to set it up.
  • Only authenticator apps (TOTP) are offered.
  • With SSO, the identity provider's own second step is not visible to the app. A workspace that requires SSO should enforce MFA in the identity provider and leave this setting off; with both on, SSO members also need an authenticator app here.

SCIM 2.0

identity provider settings
SCIM base URL:   https://www.aispendbook.com/api/v1/scim/v2
Authentication:  Bearer token (scim_..., created in Settings, Security)
Supported:       Users (list with userName eq "...", get, create, patch, delete)
Not supported:   Groups, bulk, sort
  • An admin with no member limits creates a SCIM token in Settings, Security. It is shown once and stored as a hash. Each token shows when it was last used.
  • Creating a user creates an invitation to that email, as viewer unless the request names another role in roles. The person joins by accepting it. A second create with a userName or externalId the workspace already has returns 409 with scimType: uniqueness and creates nothing.externalId is stored and returned.
  • active: false or delete removes the membership, or revokes a pending invitation. Owners are never removed through SCIM.
  • PUT (replace) and PATCH are both supported, as Okta and Entra ID send them. Name and email changes are applied; roles are not changed through SCIM. active: true after a deactivation invites the person again with the same role.
  • A deactivated user stays visible to the identity provider with active: false; delete removes it for good.
  • Invitations created by SCIM do not expire.
  • Filters: userName eq and emails[type eq "work"].value eq, in the forms Okta and Entra ID send. Users only; no Groups endpoint.
  • A token belongs to the workspace. When the admin who created it is removed, limited or loses the admin role, the token keeps working, shows that its creator has left and owners get an alert; owners revoke tokens. Owners are also alerted when an active token has not been used for 14 days. Audit entries for its changes name SCIM as the actor.
  • On a plan below Business, reads, active: false and delete still work, so leavers are removed; creating, reactivating and profile updates return 402.
  • Invitations count toward the plan's member limit unless the role is viewer.

The directory connectors (Okta, Microsoft Entra ID, Google Workspace) are separate: they read people and app grants for employee AI tools and do not manage members.

Read keys

  • An admin creates a read key in Settings, API keys, Read keys: a name, scopes (mcp, ledger.read), an optional last day, and an optional “No revenue” switch.
  • The MCP server needs the mcp scope. The daily ledger endpoint (GET /api/v1/ledger/daily) needs the ledger.read scope.
  • An expired key is refused and listed as expired. A “No revenue” key reads like a member who cannot see revenue.
  • An admin who cannot see revenue can create only a “No revenue” key. Read keys never see employee data.

Production readiness

Settings, Security, Production readiness (admins) lists checks with Pass or Warn: scheduler secret, background tasks, connector credential storage, email sender, AI Analyst provider, single sign-on and two-step verification. It reports whether each setting is present, not whether the service behind it works.

Roles and member limits are on the permissions page.