> 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-xdr/detect-investigate-and-respond-to-threats/identity-threat-module-itdr/conditional-access-policy/configure-your-multifactor-authentication-app-for-cap.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Configure your Multifactor Authentication app for CAP

Configure Microsoft Entra ID or Okta for multifactor authentication in Conditional Access Policies for Cortex XDR.

To enforce Multi-Factor Authentication (MFA) step-up verification within your Conditional Access Policies, you must first integrate an MFA provider. Cortex ITDR supports **Microsoft Entra ID** and **Okta**.

Follow the instructions below to set up Microsoft Entra ID or Okta for transactional MFA push notifications.

## **Configure Microsoft Entra ID for MFA**

Setting up Entra ID requires registering an application in your Microsoft Entra admin center and connecting it to Cortex.

#### **Step 1: Register the application in Entra ID**

1. Log in to the **Microsoft Entra admin center**.
2. Navigate to **Identity** > **Applications** > **App registrations** and select **New registration**.
3. Enter a display name for the application (for example, Cortex ITDR Conditional Access MFA).
4. Set **Supported account types** to **Accounts in this organizational directory only (Single tenant)**.
5. Click **Register**.
6. From the **Overview** page, copy and save both the **Application (client) ID** and the **Directory (tenant) ID**.

#### **Step 2: Configure API permissions**

1. Under **Manage**, select **API permissions** > **Add a permission** > **Microsoft Graph**.
2. Select **Application permissions** (not Delegated).
3. Search for and add the following permissions:
   * **Application.ReadWrite.All:** Required for secret management and token generation.
   * **UserAuthenticationMethod.Read.All**: Required to verify that users have a registered Microsoft Authenticator method prior to issuing a push notification.
4. Click **Grant admin consent for \[Your Organization]** and verify that both permissions display a status of **Granted**.

#### **Step 3: Enable Microsoft first-party applications**

Ensure the following core Microsoft applications are enabled for user sign-in:

1. Go to **Identity** > **Applications** > **Enterprise applications**.
2. Locate the following applications by name or App ID:
   * **Azure Multi-Factor Auth Client** (981f26a1-7f43-403b-a875-f8b09b8cd720)
   * **Azure MFA StrongAuthenticationService**
3. Select each application, go to **Properties**, set **Enabled for users to sign-in?** to **Yes**, and save.

#### **Step 4: Create a client secret**

1. In your App Registration, navigate to **Certificates & secrets**.
2. Select **New client secret**, enter a description, set an expiration date, and click **Add**.
3. Immediately copy and store the secret **Value** (this value is displayed only once).

### **Step 5: Connect Entra ID in Cortex**

1. Log in to **Cortex** and navigate to the **Data Sources & Integrations** page.
2. Search for **Microsoft Entra ID** and click **Add Instance** (or edit an existing connection).
3. In the **Capabilities** section, enter an instance name and enable **Identity Prevention**.
4. In the **Connection** section:
   * Enter your **Tenant ID** at the top and select **Apply**.
   * Keep the authentication setup on **Recommended** (Entra MFA App / transactional push).
   * Enter the **Client ID**, **Client Secret**, and **Tenant ID** generated in previous steps.
5. Click **Test** to validate the connection, then click **Save**.

{% hint style="info" %}
**Note**\
The initial connection test might fail. This happens because the token issued to Microsoft takes about 1-2 minutes to become fully active on their end. If the test fails, wait approximately two minutes and select **Test** again.
{% endhint %}

## **​​Configure Okta for MFA**

Setting up Okta requires creating an API application or token in the Okta Admin Console and connecting it to Cortex. Cortex uses Okta Verify push notifications for authentication challenges.

Choose **one** of the authentication methods below:

### **Authentication method 1: OAuth2 Private-Key JWT (recommended)**

#### **Step 1: Create the app integration in Okta**

1. Log in to the **Okta Admin Console**.
2. Navigate to **Applications** > **Applications** and click **Create App Integration**.
3. Select **API Services** as the sign-in method, then click **Next**.
4. Enter an application name (e.g., Cortex Identity Prevention) and click **Save**.
5. Under **General** > **Client Credentials**, set **Client authentication** to **Public key / Private key**.
6. In the **PUBLIC KEYS** section, click **Add Key** > **Generate new key**.
7. **Copy and save the generated private key (PEM format)** to a secure location, then click **Save**.
8. Under **General Settings**:
   * Uncheck **Require Demonstrating Proof of Possession (DPoP) header in token requests** if selected.
   * Ensure **Grant type** has **Client Credentials** selected (and **Token Exchange** unselected).
9. Go to the **Okta API Scopes** tab and grant:
   * okta.users.manage
   * okta.orgs.read
10. Go to the **Admin roles** tab, click **Edit assignments**, select **Super Administrator**, and click **Save changes**.
11. Copy the application's **Client ID** (and the **Key ID** if multiple keys are assigned).

#### **Step 2: Connect Okta in Cortex (OAuth2)**

1. Log in to **Cortex** and navigate to **Marketplace** > **Integrations**.
2. Search for **Okta** and select **Add Instance**.
3. Configure the following required fields:
   * **Okta Domain:** Your Okta organization URL (e.g., `example.okta.com`, without `https://`).
   * **Client ID:** The Client ID from Step 1.
   * **Private Key:** The PEM-formatted private key saved in Step 1.
   * **Key ID:** (optional) Required only if multiple public keys are configured in Okta.
4. Click **Test** to validate the connection, then click **Save**.

### **Authentication method 2: Static API Token (SSWS)**

#### **Step 1: Generate an API token in Okta**

1. Log in to the **Okta Admin Console** using an account with the **Super Administrator** or **Organization Administrator** role.
2. Navigate to **Security** > **API** > **Tokens**.
3. Click **Create Token**.
4. Enter a name (e.g., Cortex ITDR MFA Responder) and click **Create Token**.
5. **Copy the token value immediately** and store it securely (it will not be shown again).

**Note:** API tokens inherit the permissions of the creating administrator and will automatically expire if unused for 30 consecutive days or if the administrator's account is deactivated.

#### **Step 2: Connect Okta in Cortex (API token)**

1. Log in to **Cortex** and navigate to **Marketplace** > **Integrations**.
2. Search for **Okta** and select **Add Instance**.
3. Configure the following required fields:
   * **Okta Domain:** Your Okta organization URL (e.g., `example.okta.com`, without `https://`).
   * **API Token:** The SSWS token copied from Step 1.
4. Click **Test** to validate the connection, then 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/cortex-xdr/detect-investigate-and-respond-to-threats/identity-threat-module-itdr/conditional-access-policy/configure-your-multifactor-authentication-app-for-cap.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.
