Okta Multiple Client Credentials Error Occurs During OAuth Token Request
Last Updated:
Overview
An application fails to authenticate, and Okta generates a multiple client credentials error during a /v1/token request:
Cannot supply multiple client credentials. Use one of the following: credentials in the Authorization header, credentials in the post body, or a client_assertion in the post body.
This occurs when an application provides client credentials in multiple ways simultaneously with the request. Configure the application to use only one client authentication mechanism to resolve the error.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- OpenID Connect (OIDC) & OAuth 2.0 applications
- Client Authentication
Cause
The application attempts to provide client credentials (client ID and secret) in two ways at once during the /v1/token request.
The failed /v1/token request will return a multiple client credentials error.
This will occur if the application includes the client credentials in the HTTP Authorization header and as form data in the request body. Okta will return this error even if the values are identical in both locations.
Solution
What resolves the multiple client credentials error?
Review the application code and configure the /v1/token request to submit the client credentials using only one mechanism.
- Locate the
/v1/tokenrequest configuration in the application code. - Remove the inclusion of the client credentials from either the Authorization header or the form data in the request body.
- Verify that the application includes the
client_idandclient_secretin the/v1/tokenrequest using only one mechanism.
