> 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/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/users-and-roles/authenticate-users-with-saml-2.0/duo-for-single-sign-on/configure-the-saml-2.0-integration-for-duo.md).

# Configure the SAML 2.0 Integration for Duo

You need to configure the SAML 2.0 integration to use it in Cortex XSOAR.

Before you start, access the Duo metadata for the application. You will need these parameters for configuring the SAML 2.0 integration.

1. In Cortex XSOAR, go to Settings → Integrations → **Instances**.
2. Search for **SAML 2.0**.
3. Click **Add instance** to configure a new integration.
4. Enter **`https://`*****`<cortexxsoarURL>`*****`/saml`** in the **Service Provider Entity ID** field.
5. Copy the **Metadata URL** from your application defined in Duo to the **IdP metadata URL** field in Cortex XSOAR.
6. Copy the **Single Sign-On URL** from your application defined in Duo to the **IdP SSO URL** field in Cortex XSOAR.
7. Download the public certificate from Duo and copy the contents of the file into the **IdP public certificate** field in Cortex XSOAR.

   ![duo-download-certificate.png](/files/RdG6wLlIC8OBekCvSNQq)
8. Enter your **IdP private key (pem format)**. If you do not have a private key, [create a self signed certificate](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/users-and-roles/authenticate-users-with-saml-2.0/set-up-saml-logout.md), using Steps 1 - 2.
9. Leave **Use system proxy settings** selected and select **Compress encode URL (ADFS)**.

   ![duo-compress-encode.png](/files/Nx9cFlVrMQhElAGwehDM)
10. Enter your URL **`https://<cortexxsoarURL>`** for the **Service Identifier (ADFS)** field. This field must match the **Entity ID** in Duo.
11. Copy the **Single Log-Out URL** from your application defined in Duo to the **IdP Single Logout URL** field in Cortex XSOAR.
12. Enter **`https://`*****`<cortexxsoarURL>`*****`/saml-logout`** in the Single Logout Service Endpoint field.
13. Click **Test** to validate.
14. [Map Duo Groups to Cortex XSOAR Roles](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/users-and-roles/authenticate-users-with-saml-2.0/duo-for-single-sign-on/map-duo-groups-to-cortex-xsoar-roles.md).


---

# 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/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/users-and-roles/authenticate-users-with-saml-2.0/duo-for-single-sign-on/configure-the-saml-2.0-integration-for-duo.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.
