<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language

Okta Multiple Client Credentials Error Occurs During OAuth Token Request

Okta Classic Engine
Okta Identity Engine
API Access Management

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.

  1. Locate the /v1/token request configuration in the application code.
  2. Remove the inclusion of the client credentials from either the Authorization header or the form data in the request body.
  3. Verify that the application includes the client_id and client_secret in the /v1/token request using only one mechanism.

 

Related References

Loading
Okta Multiple Client Credentials Error Occurs During OAuth Token Request | Okta Support