Single sign-on
Single sign-on (SSO) lets a tenant's users sign in to Myra AI Workspace through the organisation's own identity provider instead of an email code. Myra supports two protocols:
- OpenID Connect (OIDC) — a token-based protocol used by Microsoft Entra ID, Okta, Auth0, Keycloak, Google Workspace, and Active Directory Federation Services (ADFS).
- SAML 2.0 — an assertion-based protocol used by the same identity providers and by many enterprise directories.
A tenant may enable either protocol, or both. When a domain is configured for both, Myra uses OIDC.
Single sign-on scope
Single sign-on authenticates existing accounts only. By default it does not create users (see just-in-time provisioning below). Provision the users first — manually, or through SCIM provisioning — then enable single sign-on.
Each identity provider is the identity authority for its own tenant only. A user resolved to a different tenant than the one initiating the sign-in is rejected. A first-time sign-in links to an existing account by verified email or UPN, and only within the tenant's allowed-domain allowlist. An unknown identity is rejected — no account is created — unless just-in-time provisioning is on for the tenant.
First sign-in / account already linked. The first sign-in links the identity to the existing account. It is refused (sso_denied) when the IdP reports the email as not verified, or when the account is already linked to a different identity at this provider; see First sign-in (account linking). Contact support to recover a refused link.
When a sign-in links an identity to an existing account for the first time, the person receives the e-mail "New sign-in method linked to your account" and the audit log gets an sso.identity_linked / saml.identity_linked entry (see Audit log). Accounts created by just-in-time provisioning get neither. If the person did not expect the mail, an administrator can remove the link on the member's page (SSO links).
The allowed e-mail domains
Every single sign-on configuration carries an Allowed email domains list. This list serves two purposes:
- It is the domain-to-tenant mapping the sign-in page uses to offer the Continue with SSO button.
- It is the security boundary: the identity provider may only sign in users whose email or UPN is in one of these domains.
The list is a configured allowlist, not a proof of ownership: Myra does not check DNS, so the first
organisation to configure an unused domain holds it. Each entry must be a plain domain with at least
two labels (letters, digits, hyphens and dots; no wildcard, port or @). Public e-mail providers
(for example gmail.com) are refused; the match is exact, so mail.gmail.com is not on the list. A domain that another organisation's single sign-on
configuration that is enabled already lists is refused (a disabled configuration of another organisation does not block), and so is a newly added domain on which
accounts outside your organisation exist. Domains you already saved are not re-checked for accounts,
so saving again keeps working; a stored value that no longer meets the format rules must be corrected
at the next save. Two organisations saving the same unused domain at the same moment can still both
succeed.
Enabling single sign-on
Configure single sign-on per tenant under Organisation › People › Sign-in & provisioning
(/org/<organisation>/people/sign-in-provisioning, in the People section; see Tenants). The organisation edit
dialog's Identity & SSO tab only links there. Creating,
updating, or deleting a configuration requires the SSO_MANAGE permission, held by the tenant
admin and admin roles. It cannot be added to a custom role (it can change who may sign in, so it stays with those roles).
Requiring single sign-on
By default, single sign-on is optional: users on your domains can still request an e-mail code. To close that path, open Organisation › People › Sign-in & provisioning, select the Enforcement tab and switch on Require single sign-on for this organisation in the Require single sign-on card.
Proceed as follows to require single sign-on:
- Make sure an OpenID Connect or SAML configuration is saved and enabled. The card lists the Enforced domains taken from it.
- Switch on Require single sign-on for this organisation.
- Under Break-glass administrators, choose 1 to 10 members who may still sign in with an e-mail code if the identity provider is unavailable.
- Click on the Save button.
-> From now on, everybody on the enforced domains signs in through the identity provider. Their existing sessions end immediately, except those of the break-glass administrators. Every break-glass sign-in is recorded in the audit log. Removing someone from the break-glass list later also ends their sessions. API tokens are not affected.
Note: Changing this card needs both the Manage SSO and the Manage users permission (the break-glass picker lists your members). Enforcement applies to the domains of your enabled OIDC or SAML configuration — if you disable or delete that configuration, the e-mail code works again for those domains even though the switch still shows as on.
💡 Note: Saving is refused when no single sign-on is configured, when no break-glass administrator is chosen, or when a domain is already used by another organisation's accounts or single sign-on. The API is described in Tenants and gateways.
Provider guides
- Microsoft Entra ID — the step-by-step Entra setup for OIDC and SAML.
- Generic OIDC provider — Okta, Auth0, Keycloak, Google Workspace, and any compliant OIDC identity provider.
- Generic SAML 2.0 provider — any SAML 2.0 identity provider.
For the runtime endpoints, the identity-provider requirements, and the fail-closed token verification, see Admin API authentication. For the end-user sign-in flow, see Signing in.
Just-in-time provisioning
By default a person must already have an account before they can sign in with single sign-on. A tenant
administrator can switch on just-in-time provisioning for the organisation (API field
jit_provisioning, see Tenants and gateways).
With it on, the first successful sign-in through OIDC or SAML of an address inside the allowed email
domains creates an account automatically, with the tenant's default role (Member unless changed under New users; see Tenants). It is off by default.
- The account uses a seat. When the organisation has no free seat the sign-in is refused and the sign-in page says there are no free seats; ask an administrator to free or add one.
- An address that already belongs to another organisation, a deleted account and a disabled account are never created or re-activated; the sign-in is refused as before.
- An OIDC sign-in whose identity provider does not report the email as verified (
email_verifiedother thantrue, unless the tenant enabled Trust email addresses from this identity provider) never creates an account. - Roles beyond member are assigned by an administrator afterwards.