cancel
Showing results for 
Search instead for 
Did you mean: 

oauth2 Custom error message

0 Kudos
184

Hi Guys,

i want to customize the error which i am getting from the oauth server at run time, to maintain all errors generic i want all error format as same. below is the default error message,

{ "error": "invalid_grant", "error_description": "Bad credentials" }

instead that i want to customize like below,

{ "message": "custom message", "reason": "custom reason", "subjectType": "custom subjectType", "type": "type", "error": "invalid_grant", "error_description": "Bad credentials" }

Does anyone have an idea about this?

Thanks in advance.

M P

Accepted Solutions (0)

Answers (0)