SSO with OpenID Connect
OX Security supports Single Sign-On (SSO) for secure authentication and centralized access control. The connection allows users to sign in to OX Security with their corporate credentials managed by an Identity Provider (IdP).
OX Security supports:
Auto-provisioning: Automatically creates user accounts at first login.
App-initiated login: Starts login directly from the OX sign-in page.
Group-based roles and scopes: Assigns OX permissions based on IdP groups.
When auto-provisioning is ON:
OX automatically creates a user account when someone signs in through the IdP.
Account details (name, email, groups) come directly from the IdP.
You do not need to invite users manually.
When auto-provisioning is OFF:
OX does not create accounts automatically.
You must invite users manually before they can access OX.
Users who are not invited using the OX Members page receive the Read Only role by default. You can change this setting and define any other role as default. See Roles.
When auto-provisioning with roles is configured, role assignments must be managed in the IdP.
Roles assigned directly in OX are ignored for SSO users.
Prerequisites
OX and IdP admin permissions
A decision on enabling optional features:
App-initiated login
Auto-provisioning for roles
Auto-provisioning for scopes
Access to your IdP’s OIDC metadata and ability to create a Client ID and Client Secret
If you are new to OIDC, check out the article Connect to OpenID Connect Identity Providers
Process steps
Step 1: Get OX Inputs for your IdP [OX]
The inputs are specific for your IdP and organization.
To get the correct values from OX, go to Settings > Login and click the IdP icon. The Configuration screen opens.

Click OIDC SSO SETUP INSTRUCTIONS.
Find the parameters, copy the values, and save them for use in Step 3:
Redirect URI (Callback URL)
Initiate login URI
Step 2: Register the application [IdP]
Log in to your IdP Admin console.
Go to Applications > Create App Integration (or equivalent).
Select OIDC 2.0 as the sign-in method.
Choose Web Application as application type.
Set the Sign-in redirect URI to: https://auth.app.ox.security/login/callback
Save to generate the Client ID and Client Secret.
Step 3: Configure the IdP settings [IdP]
In your IdP, open the Admin console.
Configure the Redirect URI (Callback URL): Use the value you saved in Step 1.
Copy these values from your IdP and save them for use in Step 4.
OIDC Domain
Client ID
Client Secret
Step 4: Configure SSO [OX]
In OX, go to Settings > Login and click the relevant IdP icon. The Configuration screen opens.
Enter the details collected from your IdP in Step 3.
OIDC Domain
Client ID
Client Secret
Click Save.
Auto-provisioning is enabled by default. The feature allows OX to create user accounts automatically upon first sign-in. To disable it, deactivate the toggle.
Optional Step 5: Enable IdP app-initiated login and visibility [OX-IdP]
This step allows users to start their login directly from your IdP dashboard.
In your IdP, open General settings for the OIDC app.
Add the Initiate login URI you saved in Step 1.
Click Save.
Optional Step 6: Configure auto-provisioning for roles [OX-IdP]
This step enables the automatic assignment of OX Security roles based on user groups in your IdP. There are the following types of roles:
Roles predefined by OX,
Custom roles.
Create user groups for predefined roles
Each predefined role group requires a prefix. The default is: OXApp-. You can change the default prefix to a custom one.
To change the default prefix:
Go to Settings > Login > [IdP icon] and enter a different prefix.

Create IdP role groups: In your IdP, go to Directory > Groups and create groups using these exact names (case-sensitive) for each OX role you want to sync:
OXApp-Admin
OXApp-Developer
OXApp-Dev Manager/Security Champion
OXApp-Policy Manager
OXApp-Read Only
Create user groups for custom roles
In case you have custom role(s) defined in OX, you need to create groups using the exact labels OX generates for your custom roles. The label is different from the custom role name.
You can view the custom role label only in the instructions provided by OX within the Configuration dialog.
To locate the custom role label:
Go to Settings > Login > [IdP icon] and in the instruction box, select +.
Scroll down in the instructions box until you get to Advanced settings (auto provisioning) - Setting roles.
Read the procedure. The custom role label appears next to the custom role name in brackets. You cannot change it.
Use this label as the name of your new group in IdP.
For example:
I know that the admin defined a custom role called Executive Viewer. If I am looking for the label that OX generated for the custom role Executive Viewer, first I locate the custom role Executive Viewer in brackets and then I can see that OX generated a label for this custom role "OXApp-CustomRole1".

Complete the process
Map group attributes: In your IdP, ensure you have groups attribute mapping enabled.
Enable sync: In OX, go to Settings > Login > [IdP icon] and enable Sync OX Group Roles using the prefix you selected.
Select Save.
In the IdP, assign users who need that specific scope access as members of the corresponding group.
Optional Step 7: Configure Auto-Provisioning for Scopes [OX-IdP]
This step enables the automatic assignment of granular access scopes based on user groups in your IdP. There is no prefix required for Scopes in OX; however, you do need to create a Scopes group and assign an owner.
In OX, go to the Applications page, and select an app from the list. From the header, click the Assign Owner icon.

In the Assign Application Owners screen:
Select a role.
App New Owner: Enter a descriptive name.
Email: Enter an email. The email can be a functional address.

Click + ADD. This generates the SSO Group String. Save this string to paste into the IdP.

Assign members in the IdP: In the IdP, assign members to the relevant scope groups.
For tag scopes
Tag scopes are not displayed in the OX scope selector, so OX does not generate an SSO Group String for them.
Instead, create the IdP group name by using the following format:
Example:
Replace:
<TAG_NAME>with the tag name.<TAG_ID>with the unique ID of the tag.
The tag ID is not available in the OX user interface. To obtain it, use the OX API to retrieve the tag details, and then use the returned tag ID when constructing the group name.
Note: Tag IDs can currently be retrieved only through the OX API by using the Get Single Tag endpoint.
For App owner and other UI-visible scopes
Use the SSO Group String that you generated in OX in the previous steps as the IdP group name.
Example:
Assign members in the IdP: In the IdP, assign members to the relevant scope groups.
Enable sync in OX: In OX, go to Settings > Login > [Idp] and enable the toggle Sync OX Group Scopes. Generally select the Entire Organization.

Click Save.
Step 8: Test the Sign-In [OX]
In OX, log out then log in again using your SSO.
Verify that the configured roles and scopes from your IdP are applied correctly.
Your OX organization is now connected to your IdP. Users can sign in securely with corporate credentials, and applied roles and scopes are based on the IdP configuration.
Troubleshooting
The table lists some possible issues and recommended actions.
invalid_token
Client Secret mismatch
Regenerate the Client Secret in the IdP.
invalid_redirect_uri
Callback URL not registered
Register the URL from the production environment.
Missing user info
Claims not enabled
Add profile and email scopes in the IdP; enable name, email, email_verified.
Roles not applied
Groups claim missing or filter not set
Enable the groups claim. Set the group claim filter to match all (.*) if required.
Scopes not applied
Scope group name format is wrong
Verify that OXAppOwnerScope-… or OXTagScope-… formats exactly.
Last updated
