> 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

Configure the SAML 2.0 integration for Duo in Cortex XSOAR 6.14.

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](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-8b6e38b70d80bdb2262b7b19d4d630a6b8b63c6c%2F70937aa3954c31a8599b616ab767feab00b953076e049e91d1f531942a80366a.png?alt=media)
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](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-89ae5c1398adb97a5a1db8f6de7d73f61524aae0%2Fa39464c5d31d0b4dba44759b013fdd8749eed60fe5d48270fba856b73448ba3b.png?alt=media)
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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
