mezzio / mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.
https://docs.mezzio.dev/mezzio-authentication-oauth2/
BSD 3-Clause "New" or "Revised" License
25 stars 17 forks source link

Add Body Parsing Middleware reference #40

Closed cvigorsICBF closed 3 months ago

cvigorsICBF commented 2 years ago

Mention the requirement for Body Parsing Middleware when parsing application/json requests

Q A
Documentation yes
Bugfix no
BC Break no
New Feature no
RFC no
QA no

Description

When requesting an access token from the authentication server using JSON, the response from the server will always be "error": "unsupported_grant_type" unless the body parsing middleware helper is included in the application. Updating the docs to highlight the requirement for this library.

Fixes #39

cvigorsICBF commented 2 years ago

Header added as requested