> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Okta as SAML IdP

> Configure Okta as the SAML enterprise identity provider for the XAA Requesting App.

> [!WARNING]
>
> **The Cross App Access (XAA) for the Requesting App feature is in [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages.md).**
>
> This feature is available for [Enterprise, B2B Pro, and B2B Essential plans](https://auth0.com/pricing).
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

This guide assumes you use Okta as your enterprise identity provider (IdP) and have administrative access to an Okta tenant. If you don't have one, read [Create and configure your Okta tenant](#create-and-configure-your-okta-tenant).

Configure Okta as the SAML enterprise identity provider for the XAA Requesting App. You'll set up an Okta tenant, register the Requesting App in Okta as a SAML application, register an AI agent, and configure a SAML enterprise connection in your Requesting App Auth0 tenant. You'll then register the Resource App and connect it to the AI agent.

## Create and configure your Okta tenant

To create and configure your Okta tenant for Cross App Access:

* On the [Okta Developer website](https://developer.okta.com/signup/), sign up for an **Okta Integrator Free Plan**. Once you sign up, you should be redirected to your new Okta tenant.

## Register the Requesting App in Okta

### Create the Requesting App in Okta

Your Requesting App is a SAML 2.0 application. In the Okta Admin Console:

1. Navigate to **Applications and Resources > Applications > Create App Integration**.
2. Select **Classic experience** > **SAML 2.0** and select **Next**.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_okta_req_app_new_type_saml.png)

3. Enter an application name and select **Next**.
4. Under **Configure SAML**, set the following:

| Field | Value |
| - | - |
| **Single sign-on URL** | The callback URL of your Requesting App tenant: `https://YOUR_REQUESTING_APP_DOMAIN/login/callback?connection={yourConnectionName}`. |
| **Audience URI (SP Entity ID)** | The Entity ID of your Auth0 connection: `urn:auth0:{yourRequestingAppTenant}:{yourConnectionName}`. |
| **Name ID format** | `EmailAddress` |
| **Application username** | `Email` |

To learn more about these values, read [SAML Identity Provider Configuration Settings](https://auth0.com/docs/authenticate/protocols/saml/saml-identity-provider-configuration-settings.md).

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/okta_req_app_new_application_saml.png)

5. Select **Next** and **Finish**.

Once you've created the Requesting App, Okta assigns it SAML 2.0 metadata. Select the **Authentication** tab and then **More details** in the **Sign-on methods** section. Copy the **Sign on URL** and download the **Signing Certificate**. You'll need them when you create the connection in Auth0.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_okta_req_app_authorization_saml.png)

### Assign the Requesting App to users

Allow your users to log in to the Requesting App in Okta.

In the Okta Admin Console:

1. Navigate to **Applications** and select the Requesting App you created.
2. Under **Assignments**, select **Assign > Assign to People** and select your users.
3. Select **Save**.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_okta_req_app_user_assignment_saml.png)

## Register and configure the AI agent in Okta

In Okta, the AI agent represents the entity that acts on the user's behalf to access the Resource App. You link the AI agent to the Requesting App SAML application you created. The AI agent holds the OAuth client credentials that Auth0 uses to authenticate with Okta.

### Create the AI agent

In the Okta Admin Console, navigate to **Directory > AI Agents > Register AI Agent** and select **Register Manually**.

1. Enter a name for your agent and select **Next**.
2. Under **Allow users to access this agent**, select **Select an existing app** and then the Requesting App you created. Select **Next**.
3. Assign an owner.
4. Select **Save**.

At this stage, your AI agent is `STAGED`.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_okta_ai_agent_staged_saml.png)

### Note the Client ID of the AI agent

1. Select the AI agent you created.
2. Select the **Client registration** tab.
3. Note the **Client ID**. You'll need it when you configure the connection in your Requesting App tenant.

## Configure the Requesting App connection in Auth0

In your Requesting App Auth0 tenant, create a SAML enterprise connection. This connection authenticates your users with Okta and enables the XAA Requesting App role.

1. Navigate to **Authentication > Enterprise > SAML** and select **Create Connection**.

Enter the following:

| Field | Value |
| - | - |
| **Connection name** | The connection name you chose when you created the Requesting App in Okta. |
| **Sign In URL** | The **Identity Provider Single Sign-On URL** from the Requesting App in Okta. |
| **X509 Signing Certificate** | The X.509 certificate you downloaded from the Requesting App in Okta. |

To learn more about these fields, read [Connect Your App to SAML Identity Providers](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/saml.md).

2. Under **OpenID Connect features**, enter your Okta tenant URL, for example, `https://your-okta-tenant.oktapreview.com`, in **Issuer or discovery URL**.
3. Under **Cross App Access Roles**, turn on **Requesting Application**.
4. Under **Authentication Settings**, enter the **Client ID** of the AI agent. Set **Authentication Method** to **Private Key JWT**.
5. Select **Create**.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_connection_saml_requesting_app.png)

Okta authenticates SAML Requesting Apps with [Private Key JWT](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authenticate-with-private-key-jwt.md).

### Add the Auth0 public key to the AI agent

Auth0 signs its requests to Okta with a private key. Provide Okta the JWKS URI that publishes the matching public key, so Okta picks up new keys when you rotate them.

1. The JWKS URI for the connection is `https://{yourRequestingAppDomain}/oauth/connection/{yourConnectionName}/.well-known/jwks.json`. To learn more, read [Use Private Key JWT with SAML connections](https://auth0.com/docs/authenticate/enterprise-connections/private-key-jwt-client-auth.md#use-private-key-jwt-with-saml-connections).
2. In the Okta Admin Console, navigate to **Directory > AI Agents** and select the AI agent you created.
3. Select the **Client registration** tab.
4. Under **Public/private key**, select **External**, then enter the JWKS URI from Auth0 in **JWKS URI**.
5. Select **Activate**.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_okta_ai_agent_jwks_uri_saml.png)

### Enable an application and test the connection

1. In the Auth0 Dashboard, open the SAML connection and navigate to the **Applications** tab. Enable the connection for at least one application.
2. Return to the SAML connections list. Select the three dots next to your connection and select **Try**.
3. Log in with your test user in Okta to verify the connection works.

![](https://mintlify.s3.us-west-1.amazonaws.com/auth0/docs/images/xaa/xaa_auth0_try_saml_connection.png)

Once the user successfully logs in, their user profile is created in your Requesting App tenant.

Users must log in with a XAA-enabled enterprise connection at least once so that the user profile exists in Auth0. Auth0 does not support JIT user creation with ID-JAG at the moment.

## Register the Resource App in Okta

Register the Resource App in Okta the same way you do for a Requesting App. To learn how, read [Register the Resource App in Okta](https://auth0.com/docs/ai-agents-mcp/cross-app-access/requesting-app/idp/okta-as-oidc-idp.md#register-the-resource-app-in-okta). Then, return here to assign the Resource App to the AI agent.

### Assign the Resource App to the AI agent

In the Okta Admin Console:

1. Navigate to **Directory > AI Agents** and select the AI agent you created.
2. Under **Resource Connections**, select **Add resource connection**.
3. Select **Application** and then **App configured for AI Agent access** as the **Resource type**.
4. Under **Application**, select the Resource App you created.
5. Leave the **Resource indicator** blank. When left blank, Okta will auto-generate a value.
6. For **AI agent's client ID registered in this app**, enter the **Client ID** of the application in your Resource App Auth0 tenant that your Requesting App authenticates as.
7. Optionally, configure scope restrictions.
8. Select **Add**.

## Configure the Resource App connection in Auth0

Configure the Resource App connection in your Resource App Auth0 tenant. To learn how, read [Configure the Resource App connection in Auth0](https://auth0.com/docs/ai-agents-mcp/cross-app-access/requesting-app/idp/okta-as-oidc-idp.md#configure-the-resource-app-connection-in-auth0).

## Configure Cross App Access with Token Vault

Once you have a Requesting App connection and at least one Resource App connection, proceed to [Cross App Access with Token Vault](https://auth0.com/docs/secure/call-apis-on-users-behalf/token-vault/xaa-with-token-vault.md) to set up the Token Vault integration and test the end-to-end flow.
