Auth0 Invalid Request Unknown Client Error Occurs During Authorization
Last Updated:
Overview
An Auth0 authorization request fails with an unknown client error due to a mismatch between the Client ID present in the application code and the actual Client ID residing in the Auth0 Dashboard. Resolving this issue requires verifying and correcting the Client ID in the application configuration. This issue presents when the application attempts to authenticate a user, and Auth0 rejects the request with the following error:
"error": {
"message": "Unknown client: xxx",*
"oauthError": "invalid_request",*
"type": "request-error"*
}Applies To
- Auth0
- Applications
- Client ID
- Authorization
Cause
The application configuration contains an incorrect Client ID. Typographical errors cause this mismatch during manual entry of the Client ID, such as mistaking a lowercase letter l for the number 1, or an uppercase O for the number 0. Auth0 rejects the authorization request because the submitted Client ID does not exactly match the Client ID residing in the Auth0 Dashboard.
Solution
How is the unknown client error resolved?
Navigate to the Auth0 Dashboard to copy the exact Client ID and replace the incorrect value in the application source code.
- Navigate to the Auth0 Dashboard.
- Go to Applications and select Applications.
- Select the affected application.
- Locate the Client ID field in the Settings tab.
- Copy the exact Client ID value.
- Open the application source code or environment configuration file.
- Replace the incorrect Client ID with the copied value.
- Save the configuration and initiate a new authorization request to verify the resolution.