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

# Configure Third-Party Applications

> Create and configure third-party applications using the Auth0 Dashboard or Management API.

Create third-party applications that allow external developers, partners, or AI agents to access your APIs with enhanced security controls.

## Prerequisites

Before creating a third-party application, make sure you have:

* An Auth0 tenant with at least one [API (resource server)](/docs/docs/get-started/apis) configured
* At least one [connection](/docs/docs/authenticate/identity-providers) promoted to the [domain level](/docs/docs/authenticate/identity-providers/promote-connections-to-domain-level) (for user-facing flows)

## Create a third-party application

Create a third-party application using the Auth0 Dashboard or Management API.

> [tab] Auth0 Dashboard
>
> 1. Navigate to **Applications > Applications**.
> 2. Select **Create Application**.
> 3. Enter a name for the application and select the application type:
>    * Regular Web App for server-side confidential clients
>    * Single Page App for browser-based public clients
>    * Native for mobile or desktop public clients
> 4. Check the **This application is owned by a third party** toggle.
> 5. Select **Create**.
>
> ![Dashboard Create Application dialog with third-party toggle enabled](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/third-party-applications/create-application-dialog.png)

> [tab] Management API
>
> Make a `POST` request to the `/api/v2/clients` endpoint with the following request body:
>
> | **Parameter** | **Type** | **Description** |
> | - | - | - |
> | `name` | String | Required. The name of the application. |
> | `is_first_party` | Boolean | Indicates whether the application is first-party (`true`) or third-party (`false`). |
> | `app_type` | String | The type of application (e.g., `regular_web`, `native`, `spa`, `non_interactive`). |
> | `callbacks` | Array | A list of allowed callback URLs for the redirect after authentication. |
> | `grant_types` | Array | A list of types of OAuth2 grants this client is allowed to use. Third-party applications support `authorization_code`, `refresh_token`, and `client_credentials`. To learn more, read [Security Controls for Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/security-controls). |
> | `token_endpoint_auth_method` | String | The authentication method for the token endpoint (e.g., `client_secret_post`). |
>
> If successful, Auth0 creates the application with a `tpc_` Client ID prefix, `authorization_code` and `refresh_token` grant types, and sets `third_party_security_mode` to `strict`, indicating that enhanced security controls are enabled.
>
> ```json wrap lines theme={null}
> {
>   "client_id": "tpc_aBcDeFgHiJkLmNoPqRsTuV",
>   "third_party_security_mode": "strict",
>   "is_first_party": false,
>   "name": "Partner Application",
>   "grant_types": ["authorization_code", "refresh_token"],
>   ...
> }
> ```
>
> | **Parameter** | **Type** | **Description** |
> | - | - | - |
> | `client_id` | String | The unique identifier for the application with a `tpc` prefix to indicate it's a third-party application created with strict mode enabled. |
> | `third_party_security_mode` | String | Defines the security profile. Set to `strict` to enforce enhanced security constraints for third-party apps. |
> | `is_first_party` | Boolean | Must be set to `false` when using `strict` security mode to identify the app as third-party. |
> | `name` | String | The display name of the application. |
> | `grant_types` | Array | The OAuth2 grant types this application is authorized to use (e.g., `authorization_code`). |

The `third_party_security_mode` property is set at creation and cannot be changed. To use a different security mode, create a new application.

## Configure API access policies

Third-party applications require explicit client grants to access APIs. You can configure API access policies in the following ways:

* [Per-application permissions](#per-application-permissions): Apply granular permissions to each application in your tenant.
* [Default permissions for all third-party applications](#default-permissions-for-all-third-party-applications): Apply default permissions to all third-party applications in your tenant.

When both per-application permissions and default permissions for third-party applications exist for the same API, per-application permissions take precedence. To learn more, read [Application Access to APIs: Client Grants](/docs/docs/get-started/applications/application-access-to-apis-client-grants).

### Per-application permissions

To grant a specific third-party application broader or narrower access than the defaults, create a client grant for that application's `client_id`:

> [tab] Auth0 Dashboard
>
> 1. Navigate to **Applications > APIs** and select the API.
> 2. Go to the **Settings** tab.
> 3. Scroll to **Application Access Policy** and set **User-Delegated Access** and **Client Access** to **Per-app authorization**.
> 4. Select **Save**.
>
> ![Dashboard API Settings for Application Access Policy](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/third-party-applications/application_access_policy.png)
>
> When setting per-application permissions, you must individually authorize API access for each application:
>
> 1. Navigate to **Applications > APIs** and select the API.
> 2. Go to the **Application Access** tab.
> 3. Scroll to the application, select **Edit**, and then **Grant Access** for **User-Delegated Access** and/or **Client Access**. Then, select your desired permissions.
> 4. Select **Save**.
>
> ![Dashboard API Settings for Granting API Access to Application](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/third-party-applications/grant-api-access.png)

> [tab] Management API

### Default permissions for all third-party applications

Default permissions define a baseline set of APIs and scopes available to all third-party applications. This is required for [Dynamic Client Registration](/docs/docs/get-started/applications/dynamic-client-registration), where you cannot configure access for each application individually.

> [tab] Auth0 Dashboard
>
> 1. Navigate to **Applications > APIs** and select the API.
> 2. Go to the **Settings** tab.
> 3. Scroll to **Default Permissions for Third Party Apps**.
> 4. Select **Authorized** for **User-Delegated Access** or **Client Access**.
> 5. Select the scopes to grant, then select **Save**.
>
> ![Dashboard API Settings with Default Permissions for Third Party Apps](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/third-party-applications/default-permissions-settings.png)

> [tab] Management API
>
> Make a `POST` request to the `/api/v2/client-grants` endpoint with the following request body:
>
> | **Parameter** | **Type** | **Description** |
> | - | - | - |
> | `default_for` | String | Specifies if this grant is automatically applied to certain app types. Set to `third_party_clients` to ensure all third-party apps have access to this API by default. |
> | `audience` | String | The unique identifier (URI) of the API the grant is being created for. |
> | `scope` | Array | A list of permissions (scopes) that are allowed as part of this grant. |
> | `subject_type` | String | Defines the type of application access allowed for the API: <ul><li>`user`: Used for user-delegated access, which corresponds to flows that generate a token associated with an end-user.</li><li>`client`: Used for machine-to-machine access, such as the Client Credentials Flow.</li></ul> |

## Configure connections

Third-party applications can only authenticate users through domain-level connections. Once a connection is promoted to the domain level, it becomes available to all third-party applications in the tenant.

To promote a connection:

1. Navigate to **Auth0 Dashboard > Authentication** and select the connection type (Database, Social, Enterprise).
2. Select the connection you want to use with third-party applications.
3. Enable the **Promote Connection to Domain Level** toggle.

To learn more, read [Promote Connections to Domain Level](/docs/docs/authenticate/identity-providers/promote-connections-to-domain-level).

Third-party applications can access a connection that isn't promoted to the domain level through [Cross App Access (XAA)](/docs/docs/ai-agents-mcp/cross-app-access), as long as access is authorized in the enterprise IdP. Only promote a connection to the domain level if you want any third-party application to access it through both standard login flows (`/authorize` endpoint) and XAA. If you want XAA to be the only way third-party applications can get tokens through this connection, do not promote it to the domain level.

## Configure Organizations access

For users to authenticate through a third-party application in an [Organization](/docs/docs/manage-users/organizations) context, two conditions must both be met:

1. The connection must be promoted to the [domain level](/docs/docs/authenticate/identity-providers/promote-connections-to-domain-level), as described in the section above.
2. The Organization must have `third_party_client_access` set to `allow`.

If either condition is missing, the authorization request fails with `invalid_request`. To enable third-party application access on an Organization, read [Enable Third-Party Application Access for an Organization](/docs/docs/manage-users/organizations/configure-organizations/enable-third-party-application-access).

Organization Admins can also self-service configure third-party application access for their Organization by setting the `third_party_client_access` attribute through the My Organization API. To learn more, read [Configure client application attributes](/docs/docs/manage-users/my-organization-api#configure-client-application-attributes).

Since third-party applications are controlled by external developers, you cannot guarantee they pass the `organization` parameter in authorization requests. Configure [Prompt for Credentials or Prompt for Organization](/docs/docs/manage-users/organizations/login-flows-for-organizations) on your application to ensure users are routed to the correct Organization context.

For machine-to-machine access with Organizations, third-party applications require an explicit `organization_client_grant` per Organization. `allow_any_organization` is not available. To learn more, read [Organizations for M2M Applications](/docs/docs/manage-users/organizations/organizations-for-m2m-applications).

User consent is scoped to the Organization context. A user who consents in one Organization must consent again if they access the same application through a different Organization. To learn more, read [Consent with Organizations](/docs/docs/get-started/applications/third-party-applications/user-consent-and-third-party-applications#consent-with-organizations).

### Behavior summary

| **Flow** | **`third_party_client_access: allow` required?** | **Domain connection required?** | **`allow_any_organization`** |
| - | - | - | - |
| Authorization Code | Yes | Yes | N/A |
| Client Credentials | No — not evaluated | No | Not permitted |

## Configure OpenID Connect

Third-party applications have OpenID Connect (OIDC) disabled by default. Enable it to allow the application to receive ID tokens and call the `/userinfo` endpoint. To learn more, read [OpenID Connect](/docs/docs/get-started/applications/third-party-applications/security-controls#openid-connect).

> [tab] Auth0 Dashboard
>
> 1. Navigate to **Applications > Applications** and select the third-party application.
> 2. Go to the **Settings** tab and scroll to **OpenID Connect Settings**.
> 3. Turn on **Allow this application to identify the user**.
> 4. Under **Profile scopes**, select the scopes the application can request, or select **Always allow all scopes, including future ones**.
> 5. Select **Save**.

> [tab] Management API
>
> Set the `oidc_support` property when creating or updating the application:
>
> > [tab] Auth0 CLI
> >
> > Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.
> >
> > ```bash theme={null}
> > auth0 api patch "clients/{CLIENT_ID}" \
> >   --data '{
> >     "oidc_support": {
> >       "is_allowed": true,
> >       "allowed_scopes": ["profile", "email"]
> >     }
> >   }'
> > ```
>
> > [tab] cURL
> >
> > ```bash theme={null}
> > curl --request PATCH \
> >   --url 'https://{yourDomain}/api/v2/clients/{CLIENT_ID}' \
> >   --header 'Authorization: Bearer {YOUR_MANAGEMENT_API_TOKEN}' \
> >   --header 'Content-Type: application/json' \
> >   --data '{
> >     "oidc_support": {
> >       "is_allowed": true,
> >       "allowed_scopes": ["profile", "email"]
> >     }
> >   }'
> > ```
>
> | **Parameter** | **Type** | **Description** |
> | - | - | - |
> | `oidc_support.is_allowed` | Boolean | Required. Set to `true` to allow the application to receive ID tokens and call `/userinfo`. |
> | `oidc_support.allowed_scopes` | Array | The standard scopes the application can receive: `profile`, `email`, `address`, and `phone`. Do not include `openid`. Mutually exclusive with `allow_all_scopes`. |
> | `oidc_support.allow_all_scopes` | Boolean | Set to `true` to allow all standard scopes. Mutually exclusive with `allowed_scopes`. |
>
> Provide either `allowed_scopes` or `allow_all_scopes`. `PATCH` replaces the whole `oidc_support` object, so always send the complete value. To learn more, read the [Update a Client](/docs/docs/api/management/v2/clients/patch-clients-by-id) endpoint.

The application must request `openid` and the scopes it needs in the `scope` parameter of its authorization request, for example `scope=openid profile email`. Auth0 omits user profile claims for requested scopes that aren't allowed, without an error. For third-party applications, `/userinfo` returns only the `sub` claim.

## Configure open redirect protection

Third-party applications with enhanced security controls have **Open Redirect Protection** enabled by default. When enabled, Auth0 does not:

* Redirect to the application's callback URL on authentication errors
* Expose `application.callback_domain` in email templates

Only disable **Open Redirect Protection** for third-party applications where the configured callback URIs are trusted. To learn more, read [Redirect Protection](/docs/docs/get-started/applications/third-party-applications/security-controls#redirect-protection).

> [tab] Auth0 Dashboard
>
> 1. Navigate to **Applications > Applications** and select the third-party application.
> 2. Go to the **Settings** tab and scroll to **Open Redirect Protection**.
> 3. Toggle the setting on or off.
> 4. Select **Save**.
>
> ![Dashboard Open Redirect Protection toggle](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/third-party-applications/open-redirect-protection.png)

> [tab] Management API
>
> Set the `redirection_policy` property when creating or updating the application:
>
> > [tab] Auth0 CLI
> >
> > Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.
> >
> > ```bash theme={null}
> > auth0 api patch "clients/{CLIENT_ID}" \
> >   --data '{
> >     "redirection_policy": "allow_always"
> >   }'
> > ```
>
> > [tab] cURL
> >
> > ```bash theme={null}
> > curl --request PATCH \
> >   --url 'https://{yourDomain}/api/v2/clients/{CLIENT_ID}' \
> >   --header 'Authorization: Bearer {YOUR_MANAGEMENT_API_TOKEN}' \
> >   --header 'Content-Type: application/json' \
> >   --data '{
> >     "redirection_policy": "allow_always"
> >   }'
> > ```
>
> Set to `open_redirect_protection` to enable (default) or `allow_always` to disable.

## Dynamic Client Registration

All [dynamically registered clients](/docs/docs/get-started/applications/dynamic-client-registration) are third-party applications. Before enabling DCR, configure [default API permissions](#default-permissions-for-all-third-party-applications) so that dynamically registered clients can access your APIs.

Dynamic Client Registration and CIMD registration don't accept OpenID Connect settings. To enable OIDC for these applications, [configure it on the application](#configure-openid-connect) after registration, or use [Application Profiles](/docs/docs/get-started/applications/application-profiles) for dynamically registered CIMD applications.

## Learn more

* [Third-Party Applications](/docs/docs/get-started/applications/third-party-applications)
* [Security Controls for Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/security-controls)
* [User Consent and Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/user-consent-and-third-party-applications)
* [Dynamic Client Registration](/docs/docs/get-started/applications/dynamic-client-registration)
* [Promote Connections to Domain Level](/docs/docs/authenticate/identity-providers/promote-connections-to-domain-level)
