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

# Troubleshoot Third-Party Applications

> Resolve common errors when working with third-party applications in Auth0.

Use this page to resolve common errors when integrating with third-party applications. For an overview of third-party application capabilities and restrictions, read [Security Controls for Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/security-controls).

## Identify third-party application issues

If you encounter an error during an OAuth flow, check if the application is a third-party application:

* **Client ID prefix**: Third-party applications have a `client_id` that starts with `tpc_`.
* **Tenant logs**: In [Auth0 Dashboard > Monitoring > Logs](https://manage.auth0.com/#/logs), filter by the application to review error events.

## Common errors

### `unauthorized_client` when requesting tokens

**Cause**: The third-party application does not have a client grant for the requested API. Third-party applications always require an explicit client grant, even when the API access policy is set to **Allow All**.

**Solution**: Create a client grant for the application or configure default permissions for third-party applications. To learn more, read [Application Access to APIs: Client Grants](/docs/docs/get-started/applications/application-access-to-apis-client-grants).

> [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 post "client-grants" \
>   --data '{
>     "default_for": "third_party_clients",
>     "audience": "https://api.example.com",
>     "scope": ["read:items", "write:items"],
>     "subject_type": "user"
>   }'
> ```

> [tab] cURL
>
> ```bash theme={null}
> curl --request POST \
>   --url 'https://YOUR_DOMAIN/api/v2/client-grants' \
>   --header 'Authorization: Bearer YOUR_MANAGEMENT_API_TOKEN' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "default_for": "third_party_clients",
>     "audience": "https://api.example.com",
>     "scope": ["read:items", "write:items"],
>     "subject_type": "user"
>   }'
> ```

### `unauthorized_client` even with "Allow All" API policy

**Cause**: The API's access policy setting of **Allow All** applies only to first-party applications. Third-party applications always require an explicit client grant regardless of this setting.

**Solution**: Configure [default permissions for third-party applications](/docs/docs/get-started/applications/application-access-to-apis-client-grants#default-permissions-for-third-party-applications) or create per-application permissions.

### `invalid_request` on `/authorize` with unsupported parameters

**Cause**: Third-party applications enforce strict parameter validation on the `/authorize` endpoint. Parameters such as `screen_hint`, `login_ticket`, `invitation`, `request` (JAR), and `request_uri` (PAR) are not supported.

**Solution**: Remove unsupported parameters from your authorization request. For the list of allowed parameters, read [Security Controls for Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/security-controls#authorize-parameter-validation).

### `unsupported_response_type` for `id_token` or `token`

**Cause**: Implicit flow (`response_type=token` or `response_type=id_token`) is not available for third-party applications.

**Solution**: Use `response_type=code` with [PKCE](/docs/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce).

### No ID token returned from `/oauth/token`

**Cause**: OpenID Connect (OIDC) is not enabled for the application, or the authorization request did not include the `openid` scope. OIDC is disabled by default for third-party applications.

**Solution**: [Enable OpenID Connect](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications#configure-openid-connect) for the application and include `openid` in the `scope` parameter of the authorization request.

### ID token is missing profile claims

**Cause**: The application did not request the scope that returns the claim, or the scope is not allowed in the application's OpenID Connect settings. Auth0 omits user profile claims for requested scopes that aren't allowed, without returning an error.

**Solution**: Allow the scope in the application's [OpenID Connect settings](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications#configure-openid-connect) and request it in the authorization request, for example `scope=openid profile email`.

### Grant type not supported

**Cause**: Only `authorization_code`, `refresh_token`, and `client_credentials` grant types are supported. Grant types such as `implicit`, `password`, and `urn:ietf:params:oauth:grant-type:device_code` are not available.

**Solution**: For user flows, use the [Authorization Code Flow with PKCE](/docs/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce). For machine-to-machine access, use the [Client Credentials Flow](/docs/docs/get-started/authentication-and-authorization-flow/client-credentials-flow) with a confidential client (`token_endpoint_auth_method` must not be `none`).

### Classic Login not working

**Cause**: [Classic Login](/docs/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/classic-experience) is not supported for third-party applications.

**Solution**: Use [Universal Login](/docs/docs/authenticate/login/auth0-universal-login). Universal Login is the recommended login experience for all applications.

### Client ID starts with `tpc_`

**Cause**: Third-party applications automatically receive a `tpc_` prefix on their Client ID for traffic classification. This is assigned at creation and cannot be changed.

**Solution**: This is expected behavior. Update any client-side validation or database constraints to accommodate the longer Client ID format.

### Cannot change `is_first_party` or security mode

**Cause**: The security mode and application ownership are permanent design decisions set at creation. They cannot be changed afterward.

**Solution**: Create a new application with the desired configuration. You cannot convert an existing application between first-party and third-party, or between security modes.

### Email verification or password reset shows an error page

**Cause**: The application's `redirection_policy` is set to `open_redirect_protection`, which prevents Auth0 from exposing `application.callback_domain` in email templates.

**Solution**: Update your email templates with a Liquid conditional that provides a fallback for third-party applications:

```liquid wrap lines theme={null}
{% if application.callback_domain == '' %}
  https://YOUR_FALLBACK_DOMAIN
{% endif %}
{% if application.callback_domain != '' %}
  {{ application.callback_domain }}/result-page
{% endif %}
```

Alternatively, set `redirection_policy` to `allow_always` for trusted third-party applications created via the Dashboard or Management API. To learn more, read [Security Controls for Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/security-controls#redirect-protection).

### DCR client cannot access any API

**Cause**: Dynamically registered clients require default permissions configured before they can request tokens. Without default permissions, third-party DCR clients have no API access.

**Solution**: Configure default permissions for third-party applications on each API the DCR clients need to access. To learn more, read [Configure Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications#default-permissions-for-all-third-party-applications).

### `/userinfo` returns error

**Cause**: OpenID Connect is not enabled for the application, including when it was turned off after the access token was issued, or the access token was issued without the `openid` scope.

**Solution**: [Enable OpenID Connect](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications#configure-openid-connect) for the application and request a new token with `scope=openid`.

### `/userinfo` returns only `sub`

**Cause**: For third-party applications, `/userinfo` returns only the `sub` claim, regardless of the scopes granted.

**Solution**: Read profile claims from the ID token.

### `invalid_request` when requesting `openid` without an `audience`

**Cause**: When an authorization request has no `audience`, Auth0 issues an access token for `/userinfo`. This is only available when OpenID Connect is enabled for the application.

**Solution**: [Enable OpenID Connect](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications#configure-openid-connect) for the application, or include an API `audience` in the request.

### `/oauth/revoke` works but logout endpoints do not

**Cause**: Logout endpoints (`/v2/logout`) are not available for third-party applications.

**Solution**: Use `POST /oauth/revoke` to revoke refresh tokens. The application is responsible for clearing its own session state.

### Connection not available for a third-party application

**Cause**: For non-Organization flows, the connection is not promoted to the domain level. Third-party applications can only authenticate users through domain-level connections. For Organization-based flows, the connection must additionally be enabled for the Organization.

**Solution**: For non-Organization flows, promote the connection to the [domain level](/docs/docs/authenticate/identity-providers/promote-connections-to-domain-level). For Organization-based flows, also [enable the connection for the Organization](/docs/docs/manage-users/organizations/configure-organizations/enable-connections).

### `invalid_request` when authenticating through an Organization

**Cause**: The Organization has not enabled third-party application access. By default, Organizations deny authentication requests from third-party applications. The authorization request fails with `invalid_request: parameter organization is invalid: {org_id}`.

**Solution**: An administrator must enable third-party application access on the Organization. To learn more, read [Enable Third-Party Application Access for an Organization](/docs/docs/manage-users/organizations/configure-organizations/enable-third-party-application-access).

### Refresh token rotation causing issues

**Cause**: Refresh token rotation is enabled by default for public (SPA, Native) third-party applications, aligned with OAuth 2.1 requirements.

**Solution**: Ensure your application handles rotating refresh tokens correctly, where each token exchange returns a new refresh token, and the previous one is invalidated. Admins can adjust rotation settings for manually created applications via the Dashboard or Management API.

## 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)
* [Configure Third-Party Applications](/docs/docs/get-started/applications/third-party-applications/configure-third-party-applications)
* [Application Access to APIs: Client Grants](/docs/docs/get-started/applications/application-access-to-apis-client-grants)
