> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xpanse/users-and-roles/user-authentication/authenticate-users-through-the-cortex-xpanse-tenant-using-sso.md).

# Authenticate users through the Cortex Xpanse tenant using SSO

Cortex Xpanse enables you to securely authenticate system users across enterprise-wide applications and websites with one set of credentials using single sign-on (SSO) with SAML 2.0. System users can authenticate using your organization's Identity Provider (IdP), such as Okta or PingOne. You can integrate with any IdP that is supported by SAML 2.0.

Configuring SSO with SAML 2.0 is dependent on your organization’s IdP. Some of the parameter values need to be supplied from your organization’s IdP and some need to be added to your organization’s IdP. You should have sufficient knowledge about IdPs, how to access your organization’s IdP, which values to add to Cortex Xpanse, and which values to add to your IdP fields.

To set up SSO authentication in the tenant, you must be assigned an Instance Administrator or Account Admin role.

{% hint style="info" %}

### Tip

* SAML 2.0 users must log in to Cortex Xpanse using the FQDN (full URL) of the tenant. To allow login directly from the IdP to Cortex XSOAR, you must set the relay state on the IdP to the FQDN of the tenant.
* If you have multiple tenants, you must set up the SSO configuration separately for each tenant, both in the IdP and in Cortex Xpanse.
* Create groups in your IdP that correspond to the roles in Cortex Xpanse and assign users to those groups in your IdP. Users can belong to multiple groups and receive permissions associated with multiple roles. Add the appropriate SAML group mapping from your IdP to each Cortex Xpanse role.
* If you are using AWS SSO, the `Application ACS URL` refers to the `Single Sign-On URL` and the `Application SAML Audience` refers to the `Audience URL (SP Entity ID)`. Both values can be copied from the **Authentication Settings** in Cortex Xpanse.
  {% endhint %}

If you are configuring Okta or Microsoft Entra ID, follow the procedure in Okta or Microsoft Entra ID. You can also adapt these instructions with any similar SAML 2.0 IdP.

1. In Cortex Xpanse, go to Settings → Configurations → Access Management → **Single Sign-On**.
2. In the **Single Sign-On** tab, toggle **SSO Disabled** to on.

   You can see the SSO settings, so you can configure them according to your organization’s IdP.
3. If you want to add another SSO connection to enable managing user groups with different roles and different IdPs, click **Add SSO Connection**.

   Different SSO parameters for an SSO are displayed to configure according to your organization’s additional IdP.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><ul><li>The first SSO cannot be deleted, it can only be deactivated by toggling <strong>SSO Enabled</strong> to off.</li><li><p>The <strong>Domain</strong> parameter is predefined for the first SSO.</p><p>If you add additional SSO providers, you must provide the email Domain in the SSO Integration settings for all providers except the first. Cortex Xpanse uses this domain to determine which identity provider the user should be sent to for authentication.</p></li><li>When mapping IdP user groups to Cortex Xpanse user groups, you must include the group attribute for each IdP you want to use. For example, if you are using Microsoft Entra ID and Okta, your Cortex Xpanse user group SAML Group Mapping field must include the IdP groups for each provider. Each group name is separated by a comma.</li></ul></div>
4. Set the following parameters using your organization’s IdP.
   * **General parameters**
   * **IdP Attribute Mapping**
   * **Advanced Settings** (optional)
5. **Save** your changes.

   Whenever an SSO user logs in to Cortex Xpanse, the following login options are available.

   * **Sign-in with SSO**

     If you have enabled more than one SSO provider, an optional email field appears. If the user does not enter an email address or if the email address does not match an existing domain, the user is automatically directed to the default IdP provider (the first in the list of SSO providers in the Authentication Settings). If the user enters an email address and it matches a domain listed in the **Domain** field in the SSO Integration settings for one of your IdPs, **Sign-In with SSO** sends the user to the IdP associated with that email domain.
   * **Sign-in with your CSP credentials**: Users log in with their [Customer Support Portal](https://support.paloaltonetworks.com/) (CSP) credentials, provided they have been added as a user via the CSP and have been assigned a role or assigned to the tenant through the Cortex Gateway or in the tenant. Users log into the CSP via SSO authentication.

<details>

<summary>General parameters</summary>

| Parameter                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IdP SSO or Metadata URL     | <p>Select the option that meets your organization's requirements.</p><p>Indicates your SSO URL, which is a fixed, read-only value based on your tenant's URL using the format <strong><code>https\://</code></strong><em><strong><code>\<name of Cortex-Xpanse></code></strong></em><strong><code>.crtx.paloaltonetworks.com/idp/saml</code></strong>. For example, <strong><code><https://tenant1.crtx.paloaltonetworks.com/idp/saml></code></strong></p><p>You need this value when configuring your IdP.</p> |
| IdP SSO URL                 | Specify your organization’s SSO URL, which is copied from your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Metadata URL                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Audience URI (SP Entity ID) | <p>Indicates your Service Provider Entity ID, also known as the ACS URL. It is a fixed, read-only value using the format, <strong><code>https\://</code></strong><em><strong><code>\<name of Cortex-Xpanse></code></strong></em><strong><code>.paloaltonetworks.com</code></strong>. For example <code><https://tenant1.crtx.paloaltonetworks.com></code>.</p><p>You need this value when configuring your organization’s IdP.</p>                                                                              |
| Default Role                | (Optional) Select the default role that you want any user to automatically receive when they are granted access to Cortex Xpanse through SSO. This is an inherited role and is not the same as a direct role assigned to the user.                                                                                                                                                                                                                                                                              |
| IdP Issuer ID               | Specify your organization’s IdP Issuer ID, which is copied from your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| X.509 Certificate           | Specify your X.509 digital certificate, which is copied from your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Domain                      | Relevant only for multiple SSOs. For one SSO, this is a fixed, read-only value. Associate this IdP with a specific email domain (user@\<domain>). When logging in, users are redirected to the IdP associated with their email domain or to the default IdP if no association exists.                                                                                                                                                                                                                           |

</details>

<details>

<summary>IdP attribute mapping</summary>

These IdP attribute mappings are dependent on your organization’s IdP.

| Parameter        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Email            | Specify the email mapping according to your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Group Membership | <p>Specify the group membership mapping according to your organization’s IdP.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Cortex Xpanse requires the IdP to send the group membership as part of the SAML token. Some IdPs send values in a format that include a comma, which is not compatible with Cortex Xpanse. In that case, you must configure your IdP to send a single value without a comma for each group membership. For example, if your IdP sends the Group DN (a comma separated list), by default, you must configure IdP to send the the Group CN (Common Name) instead.</p></div> |
| First Name       | Specify the first name mapping according to your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Last Name        | Specify the last name mapping according to your organization’s IdP.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |

{% hint style="info" %}

### Note

We recommend using the following settings for Microsoft Entra ID integrations:

* **Email** : <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress>
* **Group Membership**: <http://schemas.microsoft.com/ws/2008/06/identity/claims/groups>
* **First Name**: <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname>
* **Last Name**: <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname>
  {% endhint %}

</details>

<details>

<summary>Advanced settings</summary>

The following advanced settings are optional to configure and some are specific for a particular IdP.

| Parameter                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Relay State                               | (Optional) Specify the URL for a specific page that you want users to be directed to after they’ve been authenticated by your organization’s IdP and log in to Cortex Xpanse.                                                                                                                                                                                                                                                                                                                                                                                         |
| IdP Single logout URL                     | (Optional) Specify your IdP single logout URL provided by your organization’s IdP to ensure that when a user initiates a logout from Cortex Xpanse, the identity provider logs the user out of all applications in the current identity provider login session.                                                                                                                                                                                                                                                                                                       |
| SP Logout URL                             | (Optional) Indicates the Service Provider logout URL that you need to provide when configuring a single logout from your organization’s IdP to ensure that when a user initiates a logout from Cortex Xpanse, the identity provider logs the user out of all applications in the current identity provider login session. This field is read-only and uses the following format `https://<name of Cortex-Xpanse>.crtx.paloaltonetworks.com/idp/logout`, such as `https://tenant1.crtx.paloaltonetworks.com/idp/logout`.                                               |
| Service Provider Public Certificate       | (Optional) Specify your organization’s IdP service provider public certificate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Service Provider Private Key (Pem Format) | (Optional) Specify your organization’s IdP service provider private key in Pem Format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Remove SAML RequestedAuthnContext         | <p>(Optional) Requires users to log in to Cortex Xpanse using additional authentication methods, such as biometric authentication.</p><p>Selecting this removes the error generated when the authentication method used for previous authentication is different from the one currently being requested. See <a href="https://learn.microsoft.com/en-us/troubleshoot/azure/entra/entra-id/app-integration/error-code-AADSTS75011-auth-method-mismatch">here</a>for additional details about the <code>RequestedAuthnContext</code> authentication mismatch error.</p> |
| Force Authentication                      | (Optional) Requires users to reauthenticate to access the Cortex Xpanse tenant if requested by the idP, even if they already authenticated to access other applications.                                                                                                                                                                                                                                                                                                                                                                                              |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xpanse/users-and-roles/user-authentication/authenticate-users-through-the-cortex-xpanse-tenant-using-sso.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
