Overview
Experio supports OIDC-based enterprise Single Sign-On with Microsoft Entra ID, Okta, Google Workspace, and any Generic OIDC-compatible identity provider. Two SSO backends are available, selected by theSSO_BACKEND system setting:
native: Experio runs the OpenID Connect login itself. SSO client configuration, including the encrypted client secret, is stored in Experio. It supports all four identity provider types.propelauth(default): Experio delegates the OIDC login to the PropelAuth BYO sidecar, and syncs SSO clients to it through its integration API. Google Workspace is not available with this backend.
Prerequisites
Before configuring SSO, ensure you have:- Admin access to the Experio admin panel
- An identity provider account (Microsoft Entra ID, Okta, Google Workspace, or any OIDC-compatible provider)
- The redirect/callback URL for your deployment:
https://<your-domain>/api/auth/sso/callback. The SSO client form shows this URL with a copy button. - For the
propelauthbackend only: a running PropelAuth BYO sidecar container (see below)
PropelAuth First-Time Setup
This section applies only when
SSO_BACKEND is propelauth. The native backend needs no sidecar and no API key.Automated Setup (Default)
The default deployment automatically creates the PropelAuth API key during initialization. To enable this, set the PropelAuth Setup Secret (propelauthSetupSecret) deployment parameter when creating or updating your Experio instance. This is the only configuration needed — everything else is handled automatically.
The automated setup works as follows:
- You provide the
propelauthSetupSecretdeployment parameter (must be at least 16 characters). This sets theINITIAL_SETUP_SECRETenvironment variable on the PropelAuth BYO container. - During deployment, the
setup_propelauthmanagement command calls the PropelAuth/api/initial_setupendpoint with this secret. - The returned API key is automatically stored as
PROPELAUTH_API_KEYin system settings.
The automated setup only works for the first API key creation, and it skips when any
PROPELAUTH_API_KEY is already stored, even one PropelAuth no longer recognizes. If you need to recreate the key, use the manual method below.Manual Setup (Fallback)
If automated setup is not available or fails, follow these steps:- Access the cluster where Experio is deployed.
- Forward the PropelAuth port to your local machine:
- Open the PropelAuth dashboard at
http://localhost:2884. Log in with the default credentials:- Username:
root - Password:
thispasswordistemporary
- Username:
- Create a new password when prompted. Save this password securely.
- Create an integration API key: Click the gear icon, then go to Manage Settings and select the Integration Keys tab. Create a new key with
FullAccesspermissions. - Save the API key in Experio: Navigate to Admin > Settings > System Settings > AUTH and set
PROPELAUTH_API_KEY. See System Settings for details.
System Settings
Navigate to Admin > Settings > System Settings > AUTH tab to configure SSO behavior. See System Settings for the complete reference.Identity Provider Setup
Before creating an SSO client in Experio, register an application in your identity provider. In every case, the redirect URI ishttps://<your-domain>/api/auth/sso/callback, and the SSO client form in Experio shows it with a copy button.
Microsoft Entra ID (Azure AD)
-
Register an application in the Azure Portal:
- Navigate to Microsoft Entra ID then App registrations then New registration.
- Name the application (e.g., “Experio SSO”).
- Select Accounts in this organizational directory only (single tenant).
- Set Redirect URI type to Web and enter:
https://<your-domain>/api/auth/sso/callback
-
Copy credentials from the app’s Overview page:
- Application (client) ID — used as Client ID
- Directory (tenant) ID — used as Tenant ID
-
Create a Client Secret:
- Go to Certificates & secrets, then Client secrets, then New client secret.
- Set a description and expiration period.
- Copy the secret Value immediately (it is shown only once).
- You will need these three values when creating the SSO client in Experio: Client ID, Tenant ID, and Client secret.
email claim, then the upn claim, then the preferred_username claim, and only accepts tokens issued by the configured tenant.
Okta
- Go to Okta Admin Console, then Applications, then Create App Integration.
- Select OIDC - OpenID Connect and Web Application.
- Set the Sign-in redirect URI to
https://<your-domain>/api/auth/sso/callback. - Note your Client ID, Client Secret, and Okta domain (e.g.,
dev-12345.okta.com). - If you use an Okta authorization server (for example
default), note its ID. Leave it empty to use the Okta org authorization server.
email and email_verified claims).
Google Workspace
Google Workspace requires
SSO_BACKEND set to native.- In the Google Cloud Console, open APIs & Services, then Credentials, then Create Credentials, then OAuth client ID.
- Select Web application and add
https://<your-domain>/api/auth/sso/callbackunder Authorized redirect URIs. - Note the Client ID and Client secret.
- Note your Workspace domain (e.g.,
acme.com). Experio only accepts accounts from this Google Workspace domain, checked on every login.
Generic OIDC
For any OIDC-compatible provider, collect these values:
With the
propelauth backend, PropelAuth does not read the discovery document, so it needs the three endpoint URLs as you type them. Your provider lists them in its OpenID configuration at <issuer>/.well-known/openid-configuration. With the native backend you do not enter them.
Set the redirect URI in your provider to https://<your-domain>/api/auth/sso/callback. The provider must include a verified email in the ID token (email and email_verified claims). PKCE is on by default; turn off Use PKCE only if your provider rejects it.
Supported Identity Providers
Creating SSO Clients
Navigate to Admin > Users > SSO Clients and click Add client.Basic Information
- Display Name (required): Human-readable name (e.g., “Acme Corporation”).
- Email Domains (required, at least one): The domains this SSO applies to (e.g.,
acme.com,acme.io). Users with any of these email domains will be redirected to SSO login. Type each domain and press Enter to add it. Each domain can belong to only one SSO client.- With the
nativebackend, the domains also let new users in: a person’s email domain is checked the first time they sign in. Removing a domain does not block people who have already signed in, because later sign-ins are not checked against the list again. To remove someone’s access, deactivate them in Admin > Users > Profile Management. - With the
propelauthbackend, only users with these email domains can sign in.
- With the
- Identity Provider Type (required): Microsoft Entra ID, Okta, Google Workspace, or Generic OIDC. The type cannot be changed after creation.
Identity Provider Settings
The form shows only the fields for the selected type:- Microsoft Entra ID: Tenant ID, Client ID, Client secret.
- Okta: Okta domain (just the domain, not a full URL), Authorization server (optional), Client ID, Client secret.
- Google Workspace: Workspace domain, Client ID, Client secret.
- Generic OIDC: Issuer URL, Client ID, Client secret, Use PKCE. With the
propelauthbackend, the form also asks for the Authorization URL, Token URL, and UserInfo URL, all three required.
Check Configuration
Click Check configuration to confirm that Experio can reach your identity provider’s discovery document. A successful check shows the issuer and the authorization and token endpoints. The client ID and secret are not sent and are only verified at the first sign-in.The Customer ID is automatically generated from the first email domain with a unique suffix (e.g.,
acme.com becomes acme-com-a1b2c3d4). Customer IDs are immutable after creation.Activating SSO
Follow these steps carefully to enable SSO without losing admin access:- Create a fallback admin user: Before enabling SSO, ensure you have a local admin user with the same email domain as the SSO client. Set this user as a superuser so you retain access if SSO has issues.
-
Choose the backend: Keep
SSO_BACKENDatpropelauth, the default. Read Switching to the native backend before choosingnative. -
Enable SSO: Set
USE_PROPELAUTHtoTruein Admin > Settings > System Settings > AUTH. -
Enable hybrid login (recommended during testing): Set
ALLOW_HYBRID_LOGINtoTrueto keep password login available as a fallback. - Test SSO: Open a new incognito/private browser window, navigate to the login page, enter an email for the configured domain, and verify the SSO redirect works correctly.
-
Disable hybrid login (optional): Once SSO is confirmed working, set
ALLOW_HYBRID_LOGINtoFalsefor SSO-only login.
Switching to the Native Backend
SSO clients created whileSSO_BACKEND was propelauth keep their identity provider configuration in PropelAuth. Before switching, copy it into Experio with the migrate_sso_from_propelauth management command, run on the Experio server:
--apply it only previews the changes. It can be run more than once, and never prints secrets or email addresses. Use --customer-id <id> to migrate a single client, and --overwrite-secret to replace a secret already stored in Experio.
Then set SSO_BACKEND to native and test a login in an incognito window. To roll back, set SSO_BACKEND back to propelauth; the PropelAuth configuration is left unchanged.
How SSO Login Works
- User navigates to the Experio login page.
- The login page shows an email-only form (SSO-only mode) or both password and SSO options (hybrid mode).
- User enters their email and submits.
- Experio extracts the email domain and looks up the SSO client that lists that domain. If there is none, or the client is inactive, the login stops with an error.
- The user is redirected to their identity provider’s login page (e.g., Microsoft login).
- After authenticating, the identity provider redirects back to Experio’s callback URL.
- Experio (
native) or PropelAuth (propelauth) completes the OIDC flow and verifies the identity provider’s response. - Experio finds or creates the user account:
- With the
nativebackend, each user is linked to their identity provider account on first login. Later logins use that link, so a changed email address at the identity provider does not create a second account. On first login, the user’s email domain must be one of the client’s domains (later logins are not checked against the list again), and the email must be verified by the identity provider (Okta, Google Workspace, Generic OIDC). - A user that an admin already created with the same email is linked on first login. Otherwise a new user is created. If
PROPELAUTH_SSO_USERS_ACTIVE_BY_DEFAULTisFalse, new users are created inactive and see a “pending administrator approval” message instead of being logged in.
- With the
- Active users are redirected to Experio with an active session. The session is handed to the browser with a one-time sign-in code that expires after 60 seconds, never in the URL itself. Experio keeps the code in Redis, so while Redis is full or cannot be reached the sign-in cannot finish. The user sees “Sign-in is temporarily unavailable. Please try again in a minute.” (see Troubleshooting).
SSO users are automatically provisioned on first login. The
PROPELAUTH_SSO_USERS_ACTIVE_BY_DEFAULT setting controls whether they are immediately active or require admin approval.Managing SSO Clients
Viewing
The SSO clients page shows a table with Display Name, Email Domains, IdP Type, Active Status, and Created dates. Click a client to open its detail page. The Identity provider card shows the provider type, client ID, tenant, domain or issuer, whether a client secret is set and when it was last updated, the redirect URI with a copy button, the number of linked users, and the active SSO backend.Editing
Click Edit to change the display name, email domains, or identity provider settings. A client must keep at least one email domain. Changes take effect immediately for new login attempts. With thenative backend, removing an email domain does not block people who have already signed in (see Basic Information).
Client secrets are never displayed after they are saved. The edit form shows when the secret was last updated; click Replace to enter a new one. If you don’t replace it, the current secret is kept.
Deactivating
Toggle the Active status to disable an SSO configuration without deleting it. Users for that domain will fall back to password authentication (if hybrid login is enabled) or be unable to log in.Deleting
Remove an SSO client permanently. With thepropelauth backend, it is also removed from PropelAuth. A confirmation dialog prevents accidental deletion.
Audit Trail
Each SSO client tracks who created the configuration, when it was created, and when it was last modified.Troubleshooting
External References
- Microsoft Entra: Register an application
- Okta: Create an OIDC web app integration
- Google: Using OAuth 2.0 for web server applications
- OpenID Connect Discovery
- PropelAuth BYO Documentation (
propelauthbackend) - PropelAuth Entra Setup Guide (
propelauthbackend) - PropelAuth Okta Setup Guide (
propelauthbackend)