> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Your Auth0 Application with Okta Workforce Enterprise Connection

> Learn how to connect to Okta as an OpenID Connect (OIDC) Identity Provider using an enterprise connection.

The Okta Workforce Enterprise connection is an officially-supported, streamlined integration, and the preferred method to implement Okta as an <Tooltip tip="Identity Provider (IdP): Service that stores and manages digital identities." cta="View Glossary" href="/docs/glossary?term=Identity+Provider">Identity Provider</Tooltip> (IdP) in Auth0.

This integration allows your customers to manage their employees' access to your application with Okta.

Additionally, if you are using Auth0 for customer identity management and Okta for workforce identity management internally, this integration is effective way to manage your identity spaces.

If the Okta Workforce Enterprise connection does not support your use case, you can [configure Okta as a SAML IdP](/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider/configure-okta-as-saml-identity-provider) or [configure a custom authorization server](https://developer.okta.com/docs/concepts/auth-servers/#custom-authorization-server) to serve your needs.

## Create Okta OIDC app integration

To learn how to create an Okta OIDC app integration, read [Create OIDC app integrations on Okta Help Center](https://help.okta.com/en-us/Content/Topics/Apps/Apps_App_Integration_Wizard_OIDC.htm).

Use the following settings when you set up your Okta OIDC app integration:

1. Select **OIDC** as the **Sign-in method**.
2. Select **Web application** as the **Application type**, and set the following parameters:

| Field                 | Description                                                                 |
| --------------------- | --------------------------------------------------------------------------- |
| Name                  | The name of your application.                                               |
| Sign-in Redirect URIs | `https://{YOUR_AUTH0_TENANT}.{YOUR_TENANT_REGION}.auth0.com/login/callback` |
| Trusted Origins       | `https://{yourDomain}`                                                      |

<Card title="Find your Auth0 domain name for redirects">
  If your Auth0 domain name is not shown above and you are not using our [custom domains](/docs/customize/custom-domains) feature, your domain name is a concatenation of your tenant name, your regional subdomain, and `auth0.com`, separated by the dot (`.`) symbol.

  For example, if your tenant name is `exampleco-enterprises`, and your tenant is in the US region, your Auth0 domain name would be `exampleco-enterprises.us.auth0.com` and your **Redirect URI** would be `https://exampleco-enterprises.us.auth0.com/login/callback`.

  However, if your tenant is in the US region and was created before June 2020, then your Auth0 domain name would be `exampleco-enterprises.auth0.com` and your **Redirect URI** would be `https://exampleco-enterprises.auth0.com/login/callback`.

  If you are using [custom domains](/docs/customize/custom-domains), your **Redirect URI** would be `https://<YOUR CUSTOM DOMAIN>/login/callback`.
</Card>

3. Record the **Client ID** and **Client Secret** that Okta generates for your app integration.

## Add test user to Okta app integration

Create a test user in your Okta Directory to test your app integration:

1. In your Okta Admin Dashboard, navigate to **Directory > People**.
2. Select **Add Person**.
3. Enter user test details, including a password.
4. Save the test user.
5. In the **Directory**, select the new user
6. Navigate to the **Applications** tab for the user and choose **Assign Applications**.
7. Select the application name you created in the previously.

## Create Okta Workforce Enterprise connection in Auth0

Ensure you have the **<Tooltip tip="Client ID: Identification value given to your registered resource from Auth0." cta="View Glossary" href="/docs/glossary?term=Client+ID">Client ID</Tooltip>** and **<Tooltip tip="Client ID: Identification value given to your registered resource from Auth0." cta="View Glossary" href="/docs/glossary?term=Client+Secret">Client Secret</Tooltip>** of your Okta OIDC app integration available:

1. Go to [Auth0 Dashboard > Authentication > Enterprise](https://manage.auth0.com/#/connections/enterprise), locate **Okta Workforce**, and then select the **+** button.

   <Frame>
     <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/B7hSimOXFe7dopGk/docs/images/cdy7uua7fh8z/1fSTcrZpkgkPR64NnI1lr8/b3454e60a4463e99353603fd11a71983/Enterprise_Connections_-_EN.png?fit=max&auto=format&n=B7hSimOXFe7dopGk&q=85&s=148b5960b312297e675fbd40891a1c2d" alt="Dashboard - Connections - Enterprise" width="600" height="561" data-path="docs/images/cdy7uua7fh8z/1fSTcrZpkgkPR64NnI1lr8/b3454e60a4463e99353603fd11a71983/Enterprise_Connections_-_EN.png" />
   </Frame>
2. Enter details for your connection, and then select **Create:**

| Field               | Description                                                                                                                                                               |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection name** | Logical identifier for your connection; it must be unique for your tenant. Once set, this name can't be changed.                                                          |
| **Okta Domain**     | Okta's domain name for your organization.                                                                                                                                 |
| **Client ID**       | Unique identifier for your registered Okta application. Enter the saved value of the **Client ID** for the app you just registered in the Okta admin console.             |
| **Client Secret**   | String used to gain access to your registered Okta application. Enter the saved value of the **Client Secret** for the app you just registered in the Okta admin console. |

3. In the **Provisioning** view, configure how user profiles get created and updated in Auth0.

| Field                                          | Description                                                                                                                                                                         |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Sync user profile attributes at each login** | When enabled, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0.     |
| **Sync user profiles using SCIM**              | When enabled, Auth0 allows user profile data to be synced using SCIM. For more information, see [Configure Inbound SCIM](/docs/authenticate/protocols/scim/configure-inbound-scim). |

4. Switch to the **Login Experience** view, and configure how your users log in with this connection:

| Field                              | Description                                                                                                                                                                                                         |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Home Realm Discovery**           | Compares a user's email domain with the provided identity provider domains. For more information, read [Configure Identifier First Authentication](/docs/authenticate/login/auth0-universal-login/identifier-first) |
| **Display connection button**      | This option displays the following choices to customize your application's connection button.                                                                                                                       |
| **Button display name** (Optional) | Text used to customize the login button for Universal Login. When set the button reads: "Continue with \{Button display name}".                                                                                     |
| **Button logo URL** (Optional)     | URL of image used to customize the login button for Universal Login. When set, the Universal Login login button displays the image as a 20px by 20px square.                                                        |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  Optional fields are available with Universal Login only. Customers using Classic Login will not see the Add button, Button display name, or Button logo URL.
</Callout>

## Enable connection for Auth0 applications

To use your new Okta Workforce Enterprise connection, you must [enable the connection](/docs/authenticate/identity-providers/enterprise-identity-providers/enable-enterprise-connections) for your Auth0 Applications.

## Test the connection

Now you're ready to [test your connection](/docs/authenticate/identity-providers/enterprise-identity-providers/test-enterprise-connections).

## Configure Global Token Revocation

This connection type supports a Global Token Revocation endpoint, which allows a compliant identity provider to revoke Auth0 user sessions, revoke <Tooltip tip="Refresh Token: Token used to obtain a renewed Access Token without forcing users to log in again." cta="View Glossary" href="/docs/glossary?term=refresh+tokens">refresh tokens</Tooltip>, and trigger back-channel logout for applications using a secure back-channel.

This feature can be used with Okta's Universal Logout.

For more information and configuration instructions, see [Universal Logout](/docs/authenticate/login/logout/universal-logout).

## Learn more

* [Handle Declined Authorization Permissions](/docs/authenticate/identity-providers/social-identity-providers/reprompt-permissions)
* [Pass Parameters to Identity Providers](/docs/authenticate/identity-providers/pass-parameters-to-idps)
* [Authentication and Authorization Flows](/docs/get-started/authentication-and-authorization-flow)
