Let's be consistent with the error responses described by the OAuth 2.0 Authorization Framework RFC:
- Authorization response: https://tools.ietf.org/html/rfc6749#section-4.1.2.1
- Access token response: https://tools.ietf.org/html/rfc6749#section-5.2
Also, log these errors server-side to keep track of them and allow better investigation of randomly failing unit tests.
- is required by
-
NXP-22734 Fix randomly failing OAuth2ChallengeFixture#tokenShouldValidatePKCE
- Resolved