All our APIs are protected via oauth2 and we make use of this gem.
The OAuth2::Error class is expecting the error response to always have an error, error_description parameter
Our APIs make use of the problem+json as a structured format for error messages.
I was reading through the oauth2 spec and if I understood the spec correctly it says that the resource error response format can look however you want it to be.
Maybe it would be great to support different error formats like problem+json
PS. All thanks for the hard work that goes into this gem ❤️
All our APIs are protected via oauth2 and we make use of this gem.
The
OAuth2::Error classis expecting the error response to always have anerror,error_descriptionparameterOur APIs make use of the
problem+jsonas a structured format for error messages.I was reading through the oauth2 spec and if I understood the spec correctly it says that the resource error response format can look however you want it to be.
Maybe it would be great to support different error formats like
problem+jsonPS. All thanks for the hard work that goes into this gem ❤️