OAuth 2.0 format enforcement

What is the update?

On October 12th, 2022, we are tightening the list of accepted format for OAuth 2.0 token request. With this change, we will formally reject malformed token requests.

Who is affected?

  1. This change may affect you or your clients using OAuth 2.0 authentication method. Find out if any of your access profiles use OAuth 2.0 by browsing the list of Clients in API Platform page.

  2. This change will affect you or your clients if are sending malformed token requests today. Refer to this list of accepted formats for token request.

Malformed token requests

This list of malformed requests are currently accepted, but will be rejected after the change.

Content-TypeBasic header present?client_id & client_secretgrant_typeReason
FormYes (missing client id/secret)Form payloadForm payloadIf basic header is used, it must contain client ID and secret.
FormYesBasicJSON payloadgrant_type format does not match Content-Type.
FormNoJSON payloadJSON payloadBody format does not match Content-Type.
BlankNoQuery stringQuery stringMust have Content-Type & parameters in request payload.
JSONNoJSON payloadQuery stringIf Content-Type: application/json is used, all parameters must be in payload.
JSONYesBasicQuery stringIf Content-Type: application/json is used, all parameters must be in payload.

How does this affect me?

If you or your clients have been submitting token requests according to this list of accepted formats for token request, there will be no disruption.

Last updated: