Activate SAML in Entra ID
-
Go to Entra ID Portal → Enterprise apps → click on the
xorlabapp. -
Open Single sign-on:

- Choose SAML.
-
Edit the Basic SAML Configuration:

-
Add an Identifier and a Reply URL entry, where
xyzis your customer ID.
- Save and click No, I’ll test it later.
-
Copy and save the App Federation Metadata URL from SAML Certificates, you will need it later.

Configure users and roles in Entra ID
-
Go to Entra ID Portal → App registrations → All applications → click on the
xorlabapp.
-
Click on App roles and then Create app role:

-
Create three new app roles via Create app role. The optional ones can be omitted if they are not needed.

-
Open the Enterprise apps menu on the left side, choose again the
xorlabapp and click on Assign users and groups:
-
Click on Add user/group:

-
Add the users or groups who need access to xorlab and assign them one of the three created roles Administrator, Analyst or Quarantine user.
Group assigning is only available in the Microsoft Entra ID P1+ license.
Activate SAML on xorlab
Now that you have the Entra ID configured, we will set up xorlab accordingly.-
Open the file
auth/auth/auth.ymland add a SAML backend.auth.yml -
Enter the App Federation Metadata Url you copied before for the
metadataUrlkey. -
Map your Entra ID roles to xorlab roles by adding a
roleMapping. More information about xorlab roles can be found at Built-in User Rolesauth.ymlRole pass-through without role mapping
The following example shows how to do a role pass-through without role mapping. In general this is not recommended because it is more error prone. However if you do it, make sure to:- Specify all xorlab roles in Entra ID (including
xcc_insightsandxcc_monitor) and assign them to your users - Provide only xorlab related roles in the SAML token to avoid an excessive token size
auth.yml - Specify all xorlab roles in Entra ID (including
- Click Publish. The authentication configuration becomes active within about one minute.
-
Now the SAML integration is done and you can test the login with the link
https://xyz.activeguard.cloud/?_agAuthBackend=entraSaml. Replacexyzwith your customer ID.
Custom trust storeIn case your xorlab configuration uses a custom trust store, you will also have to add the DigiCert Global Root CA certificate when integrating SAML with Azure Active Directory. Please follow the steps described in Certificate configuration.
Next steps
Enable the protection mode for your tenant:- Either M365 Monitoring Mode or M365 Inline Mode