cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need to customize Oauth server error response

Former Member
0 Kudos
659

Hi,

Currently i am getting exception like "error": "unsupported_grant_type" while try to get Oauth access token. I need to customize that error response with error type like validation error.

I saw that oAuth2ExceptionRendererV2 has exceptionConverter but still i have error in below format { "error": "unsupported_grant_type", "error_description": "Unsupported grant type: passwor" }

I need to add type in error response like { "errors": [ { "message": "forgoodtest@gmail.com", "type": "DuplicateUidError" } ] }

There is any way to customize the Oauth2Exception? Please guide me on this

View Entire Topic
Former Member
0 Kudos

Hi . Thank you for your response i will check.