Skip to main content
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.
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, 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.
  1. Enter an application name and select Next.
  2. Under Configure SAML, set the following:
To learn more about these values, read SAML Identity Provider Configuration Settings.
  1. 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.

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.

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.

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: To learn more about these fields, read Connect Your App to SAML Identity Providers.
  1. Under OpenID Connect features, enter your Okta tenant URL, for example, https://your-okta-tenant.oktapreview.com, in Issuer or discovery URL.
  2. Under Cross App Access Roles, turn on Requesting Application.
  3. Under Authentication Settings, enter the Client ID of the AI agent. Set Authentication Method to Private Key JWT.
  4. Select Create.
Okta authenticates SAML Requesting Apps with Private Key JWT.

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.
  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.

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.
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. 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.

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 to set up the Token Vault integration and test the end-to-end flow.