laminas-api-tools / api-tools-oauth2

Laminas module for implementing an OAuth2 server
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
11 stars 15 forks source link

Wrong response format #17

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

Hi,

OAuth2 specification describe in point 5.2. response format for invalid request. But in AuthController::tokenAction if status code is beetwen 400 and 500, we return reposne in problem+json format, not in format from specification. Why?

I know that client can recognize content-type of response, but many OAuth2 clients recognize format from specification.


Originally posted by @michalkopacz at https://github.com/zfcampus/zf-oauth2/issues/71

weierophinney commented 4 years ago

resolved in #72


Originally posted by @michalkopacz at https://github.com/zfcampus/zf-oauth2/issues/71#issuecomment-87825944