> 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/define-duo-to-authenticate-cortex-xsoar.md).

# Define Duo to authenticate Cortex XSOAR

Define Duo to authenticate Cortex XSOAR 6.14 users.

Before you start, [create a Duo group for Cortex XSOAR users](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/users-and-roles/authenticate-users-with-saml-2.0/duo-for-single-sign-on/create-duo-groups-for-cortex-xsoar-users.md).

1. Log in to Duo and click **Applications**.
2. Click **Protect an Application**.
3. Find **Generic Service Provider - 2FA with SSO hosted by Duo (Single Sign-On)** in the application list and click **Protect**.

   ![duo-generic-service-provider.png](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-9a397389913802ed73dcb31ea0aae94c904fb2d1%2F124fde7fb84f33baf4b4fb4c5efca61ced2ac3b6c18a02c82d780421d8a291d9.png?alt=media)
4. In the Service Provider section, enter the following, using the url of your Cortex XSOAR installation:

   | Parameter                  | Value                                    |
   | -------------------------- | ---------------------------------------- |
   | Entity ID                  | https\:// `<cortexxsoarURL>`             |
   | Assertion Consumer Service | https\:// `<cortexxsoarURL>`/saml        |
   | Single Logout URL          | https\:// `<cortexxsoarURL>`/saml-logout |
   | Service Provider Login URL | Keep this field blank.                   |
   | Default Relay State        | Keep this field blank.                   |
5. In the SAML Response section, change the following:
   1. Change the **NameID format** drop-down from **`urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`** to **`urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified`**.

      ![duo-nameid-format.png](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-bfb284875db407a537d0818eea04a72313b61752%2Ff510dac447b3d5e809968ba067529f2a3d2dbc2f1f281093d6a0de08c9d37a71.png?alt=media)
   2. Leave **NameID attribute** as **`<Email Address>`** and **Signature algorithm** as **`SHA256`**.
   3. In the **Signing Options** section, clear the **`Sign assertion`** checkbox.

      ![duo-signing-option.png](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-9728bf89b9bd631ef8f93d337c35406b6eb9da47%2F944a618b797a062364b16566a60565b895ff3ef10db4a0f6ab23273afe2e3193.png?alt=media)
6. Map attributes:

   | IdP Attribute    | SAML Response Attribute |
   | ---------------- | ----------------------- |
   | \<Username>      | urn                     |
   | \<Email Address> | Email                   |
   | \<First Name>    | FirstName               |
   | \<Last Name>     | LastName                |
7. Role attributes:

   | Parameter               | Value                                                              |
   | ----------------------- | ------------------------------------------------------------------ |
   | Attribute name          | memberOf                                                           |
   | Service Provider’s Role | The SAML role in Cortex XSOAR that will be mapped to the Duo group |
   | Duo Groups              | The Duo group you created                                          |
8. Click **Save**.


---

# 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/define-duo-to-authenticate-cortex-xsoar.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.
