This guide assumes you use Okta as your enterprise identity provider (IdP) and have administrative access to an Okta tenant you can use for testing. If you don’t have one, read Create and configure your Okta tenant.
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.
- If Cross App Access is not enabled in your Okta tenant, email
developers@okta.comto request XAA enablement for your Okta tenant.

Register the Requesting App in Okta
Configuring the Requesting App with SAML is not mandatory; it can also use OIDC. The following sections explain how to configure the Requesting App as a SAML application.Create Requesting App in Okta
Your Requesting App is a standard SAML application. In the Okta Admin Console, go to Applications > Applications > Create App Integration and select SAML 2.0 as the Application type.


Assign Requesting App to Test Users
Allow your test user to log in to the Requesting App in Okta. In the Okta Admin Console:- Navigate to Applications and select the Requesting App you created.
- Select Assign > Assign to People and select your test user.
- Select Save.

Register the Resource App in Okta
Create Resource App in Okta
Similar to the Requesting App, your Resource App is a SAML 2.0 application.- Go to Applications > Applications > Create App Integration and select SAML 2.0 as the Application type.
-
Enter a connection name that you’ll reuse later when establishing the SAML connection between Okta and Auth0. Then, under Configure SAML:
- Set the Single Sign On URL field to your Auth0 Tenant’s callback URL. Your callback URL will be
https://{yourAuth0Domain}/login/callback?connection={yourConnectionName}. - Set the Audience URI (SP Entity ID) to
urn:auth0:TENANT:CONNECTIONformat using the connection name.
- Set the Single Sign On URL field to your Auth0 Tenant’s callback URL. Your callback URL will be
- Select Next and Finish.

Assign Resource App to Test Users
Allow your test user to log in to the Resource App in Okta. In the Okta Admin Console:- Navigate to Applications and select the Resource App you created.
- Select Assign > Assign to People and select your test user.
- Select Save.

Enable Cross-app Access (XAA) in Resource App
Go to the Resource Server tab and enable Cross-app access (XAA) for the Resource App. Enter the Issuer URL of the Resource App’s authorization server:https://YOUR_AUTH0_DOMAIN/.

Auth0 issues and accepts tokens with an issuer URL that must end with the trailing forward slash
/.Register AI Agent in Okta
Create AI Agent
Go to Directory > AI Agents > Register AI Agent and select Register manually. Enter a name for your agent and assign an owner.
STAGED. Before activating the agent, complete the following steps.

Add Agent Credentials
AI Agents authenticate on behalf of your applications with private key JWT. In the Credentials tab, select Add public key. You can either provide a public key of your own key pair or select Generate new key and download its private key and key ID (kid).
Once you’ve set your credentials, a checkbox appears on the side of the tab.

Add Agent Delegations
In the Delegations tab, select Add Caller in the User sign-on section. Select the Requesting App, then select Add caller.

Add Agent Resource connections
In the Resource connections tab, select Add resource connections and select Application as the Resource type. In the Application section, select the Resource App you created and set AI agent’s client ID registered in this app to theclient_id of the Agent0 application in your Auth0 tenant.

Activate the Agent
From the Agent’s Actions drop down, select Activate and check that MANAGED STATUS is Active.Configure a SAML Enterprise connection in Auth0
To create a SAML Enterprise connection in your Auth0 Dashboard, go to Authentication > Enterprise > SAML and select Create Connection. Copy the Sign In URL and X509 Signing Certificate from the Resource App’s Sign On tab.
https://{yourOktaDomain} as the issuer URL.

If you want third-party applications to access this connection only through Cross App Access, with access approved in Okta as the enterprise IdP, don’t promote it to the domain level. Promoting it makes the connection available to any third-party application in your tenant for standard login flows (
/authorize), not just through Cross App Access.Test Connection in Auth0
In the Auth0 Dashboard:- Navigate to Authentication > Enterprise > SAML:
- Enter the Enterprise SAML connection you created and select the Applications tab. Then, enable the Requesting App you created for the connection.
- Go back to the list of Enterprise SAML connections. Select the three dots on the right for your connection and select Try. You will be redirected to authenticate in your Okta tenant to complete the login with your test user.

- Log in with the user you assigned to XAA Resource App

- Verify user login was successful


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.