# 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?
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.
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-Type | Basic header present? | client_id & client_secret | grant_type | Reason |
---|---|---|---|---|
Form | Yes (missing client id/secret) | Form payload | Form payload | If basic header is used, it must contain client ID and secret. |
Form | Yes | Basic | JSON payload | grant_type format does not match Content-Type . |
Form | No | JSON payload | JSON payload | Body format does not match Content-Type . |
Blank | No | Query string | Query string | Must have Content-Type & parameters in request payload. |
JSON | No | JSON payload | Query string | If Content-Type: application/json is used, all parameters must be in payload. |
JSON | Yes | Basic | Query string | If 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: 10/11/2022, 5:24:44 AM