Module · at the center of the platform
XTM One
How-to guide

Configure single sign-on

Sign people in to XTM One through OpenID Connect or SAML, decide who gets an account and which role, map SAML groups, and keep local sign-in, two-factor and sessions safe.

XTM OneFor administrators and platform engineers

XTM One signs people in with a local password, through OpenID Connect (OIDC) with the Authorization Code flow, or through SAML 2.0 as a service provider. Everything is set in Administration, then Settings, then Access and security, then Authentication, stored in the database, and applied without a restart. This page connects an identity provider, decides who gets an account and with which role, and keeps the sign-in safe: local fallback, two-factor authentication and session lifetime. How roles and groups decide what people reach is in How access works in XTM One.

IDENTITY PROVIDERXTM ONERESULTIdentity providerEntra ID, Okta, Keycloak...Match the identitySSO subject, then emailCreation rulesOn-the-fly, allowed domainsSecond factorWhen the person enrolledSessionRole and groups setRefusedBack to the sign-in page
  1. Identity provider → Match the identity: email and claims
  2. Match the identity → Second factor: account found
  3. Match the identity → Creation rules: no account
  4. Creation rules → Second factor: account created
  5. Creation rules → Refused: not provisioned
  6. Second factor → Session: code accepted
A single sign-on links an identity to an account, or creates one when the rules allow it

Before you start

  • Your account is an administrator.
  • BASE_URL is the address people open XTM One at, https://xtm-one.grand-meridian.example for example: the addresses you register in the identity provider are built from it.
  • For OIDC, an application registered in your identity provider, with its client ID and client secret. For SAML, the metadata URL of your identity provider.
  • The client secret can be read from a vault instead of being stored: see Keep secrets in your vault.

Connect OpenID Connect

  1. Open Administration, then Settings, then Access and security, then Authentication and click Configure.

  2. In your identity provider, set the redirect URI shown under Set the OIDC Redirect URI in your identity provider to:, {BASE_URL}/api/auth/oidc/callback.

  3. Turn on OpenID Connect (OIDC) and fill in the fields:

    FieldWhat to enter
    Display NameThe label of the sign-in button, Microsoft by default. Required
    Discovery URLThe provider's /.well-known/openid-configuration URL, not the issuer alone. For Keycloak, https://<host>/realms/<realm>/.well-known/openid-configuration. Required unless you fill the three manual endpoints
    Client ID, Client SecretFrom the application of your identity provider, stored encrypted and never shown again. Required the first time; once one is stored, leave the field empty to keep it
    Scopesopenid, email and profile by default. Press Enter after each scope, and keep openid and email
    Advanced: Manual endpoint URLs (if not using discovery)The Authorization URL, Token URL and UserInfo URL, all three, only for a provider without discovery
  4. Click Test connection. It fetches the discovery document and says what is missing; saving does not depend on it.

  5. Decide On-the-fly user creation and Automatically admin users (below), then click Save in the bar at the bottom, which shows Unsaved changes while the form differs from what is stored.

A method switched on is saved only with its required fields, marked with an asterisk: Save then moves to the first empty one, which reads "This field is required."

XTM One 1.261119.1

The identity provider must return an email claim: a sign-in without one is refused. The name and job title are updated from the provider's claims at each sign-in.

Connect SAML 2.0

  1. Open Administration, then Settings, then Access and security, then Authentication and click Configure.
  2. In your identity provider, create a SAML application with the values the screen shows:
    • Identifier (Entity ID): Required: {BASE_URL}/api/auth/saml/metadata, unless you set your own SP Entity ID.
    • Reply URL (Assertion Consumer Service URL): Required: {BASE_URL}/api/auth/saml/acs.
    • The email claim, used to match and create accounts, and optionally the display name, the job title and the group memberships.
  3. Turn on SAML 2.0, give a Display Name (Corporate SSO by default) and the IdP Metadata URL, both required. Leave SP Entity ID empty unless your identity provider already knows XTM One under another identifier.
  4. Leave Requested Authentication Context off to accept every authentication method of the provider (certificates, MFA, FIDO2). On, the request asks for password-based authentication.
  5. Decide the account rules and the group mapping (below), then click Save.

Decide who gets an account

XTM One matches a single sign-on to an account in this order:

  1. the account already linked to that identity (its SSO subject);
  2. otherwise the account with the same email, local or not, which is then linked;
  3. otherwise a new account, with the User role.
SettingDefaultEffect
On-the-fly user creation (OIDC and SAML, each its own)OnOff, only existing accounts can sign in through that method: everyone else is refused until an administrator or an invitation creates their account.
Allowed email domains (New accounts)Empty: any domainNew accounts, from local registration or single sign-on, only for an address at one of these domains. Exact match: grand-meridian.example does not admit eu.grand-meridian.example. Existing accounts keep signing in.
Automatically admin users (OIDC and SAML, each its own)OffOn, everyone who signs in through that method is made an administrator at each sign-in, existing accounts included. Turning it off demotes nobody.
Keep Automatically admin users off

On, it makes every person your identity provider lets in an administrator of XTM One. Promote administrators by hand on their page instead, and check the Users tab of Administration, then Users and groups, filtered on the Admin role, after turning it off.

The domain of a single sign-on comes from the email the identity provider asserts. With a multi-tenant provider, make sure it asserts verified addresses only.

A disabled account is refused before anything changes on it: no profile update, no new link, no group synchronization. The refusal is recorded in Administration, then Audit logs as login_refused.

Map SAML groups

Automatic Groups Mapping (on by default; the summary of the section then reads Auto-sync groups from IdP) synchronizes the person's groups at each SAML sign-in: they join the XTM One groups named in the assertion and leave those it no longer names. Auto-create Groups (on by default, available while the mapping is on) creates a group of the assertion that does not exist yet; off, the groups that do not exist in XTM One are ignored. XTM One reads the group claims of Microsoft Entra ID, Okta, ADFS and generic SAML providers. OIDC has no group mapping.

A group that keeps people off a model provider (an exclusion on its Access) follows your directory this way. See Set up the platform in Settings.

Let the XTM Hub decide

When people reach XTM One through the XTM Hub, the XTM Hub can decide who may sign in through OIDC and who is an administrator. Set XTM_HUB_ADMIN_GROUP to the role that means administrator in the XTM Hub claim, and set PLATFORM_ID. It then wins over Automatically admin users: the XTM Hub also demotes. The bootstrap account of ADMIN_EMAIL (admin@filigran.io when unset) is never demoted, and local sign-in stays available if the gate is wrong. The gate does not depend on the registration of the platform on the XTM Hub, a separate step: see Connect XTM One to the XTM Hub. See XTM Hub sign-in gate.

Keep local sign-in as a fallback

SettingDefaultEffect
Local Authentication (Allow email & password login)OnOff, everyone signs in through single sign-on, administrators included. The very first account can always be created.
Local Registration (Allow local registration)OffOn, anyone can create an account from the sign-in page, within the allowed domains.

Before turning Local Authentication off, make sure an administrator signs in through single sign-on: an identity provider outage then locks everyone out. Accounts also come from an administrator or an invitation: see How access works in XTM One.

When a sign-in fails

The person returns to the sign-in page with a short message and a marker in the address. The details go to the server log, never to the page.

?sso_error=When
cancelledThey declined the consent screen of the identity provider.
not_provisionedNo account matches and none is created: on-the-fly creation is off, or the domain is not allowed.
account_deactivatedTheir account is disabled.
not_authorisedThe XTM Hub did not entitle them to this instance.
misconfiguredThe discovery URL or the endpoints gave no usable authorization or token endpoint.
failedAny other error, or the provider was unreachable, slow or rate-limiting.

Two-factor authentication

Each person can add a six-digit code from an authenticator app, in their profile. XTM One asks for it after the first factor whatever the method, local, OIDC or SAML, and the consent page of an MCP client too. It stacks with the identity provider's own multi-factor authentication. Enabling it gives 10 single-use recovery codes. API keys, channel bots and the tokens of OpenCTI, OpenAEV and OpenCRQ are not affected.

When a person loses their device and their codes, Reset two-factor on their Profile tab clears the enrollment. Changing SECRET_KEY makes every enrollment unreadable: recovery codes still work, and administrators reset the others.

Bound the sessions

A sign-in opens a web session. Two settings of Administration, then Settings, then Access and security, then Security options bound it, applied on every server within 5 seconds:

FieldVariableDefaultEffect
Absolute session lifetime (minutes)JWT_EXPIRE_MINUTES10080 (7 days)The session ends this long after the sign-in, even while it is used. Lowering it ends the older sessions on their next request.
Idle session timeout (minutes)SESSION_IDLE_TIMEOUT_MINUTES0 (off)The session ends after this long without a click, a key or a scroll; 5 minutes at least. The web app warns a minute before. It needs Redis: while Redis is unreachable, sessions are not ended for inactivity.

The variable wins over the field. A day or less for the lifetime and 5 to 30 minutes of idle time are what the Security audit counts as enforced. After a session ends, people using single sign-on choose their provider again on the sign-in page: XTM One never opens it on its own.

Terms of Use

Where AI is licensed, everyone accepts Filigran's Terms of Use after their first sign-in, and again when TERMS_OF_USE_VERSION changes. TERMS_OF_USE_ENABLED=false removes the screen, for a company that collects that acceptance elsewhere.

ExampleSign the Grand Meridian staff in with Microsoft Entra ID

Hélène Marchetti connects Microsoft Entra ID to https://xtm-one.grand-meridian.example. In Entra ID, she registers an application "XTM One" with the redirect URI https://xtm-one.grand-meridian.example/api/auth/oidc/callback, and puts its client secret in the company vault.

In Administration, then Settings, then Access and security, then Authentication, Configure:

FieldValue
OpenID Connect (OIDC)On
Display NameGrand Meridian
Discovery URLhttps://login.microsoftonline.com/grand-meridian.example/v2.0/.well-known/openid-configuration
Client IDThe application ID of "XTM One"
Client SecretFrom a vault: vault://corp/secret/xtm-one/entra#client_secret
On-the-fly user creationOn
Automatically admin usersOff
Allowed email domainsgrand-meridian.example
Local AuthenticationOn, for the bootstrap account

Test connection answers The Discovery URL is usable. Camille Roux signs in with Grand Meridian the next morning: her account is created with the User role, and Hélène adds her to CTI team. A contractor with an address outside grand-meridian.example is sent back with ?sso_error=not_provisioned.

Marc Dupuis sets the session bounds in the deployment:

JWT_EXPIRE_MINUTES=1440
SESSION_IDLE_TIMEOUT_MINUTES=30

What's next

NextConnect XTM One to the XTM Hub
XTM One
The AI layer at the center of the XTM platform: agents that work across OpenCTI, OpenAEV and OpenCRQ.

Published

Overview