spring - Wrapping Oauth2 response -


how modify oauth2 response:

existing:

{       "access_token": "25313d2c-3d24-429c-ab42-39f712aa7d8f",       "token_type": "bearer",       "refresh_token": "da9d14c5-32aa-44c1-8c64-83244b85e150",       "expires_in": 27843637     } 

requirement :

{       "success":true,       "access_token": "25313d2c-3d24-429c-ab42-39f712aa7d8f",       "token_type": "bearer",       "refresh_token": "da9d14c5-32aa-44c1-8c64-83244b85e150",       "expires_in": 27843637     } 

same while authentication problem comes: existing:

{       "error": "invalid_grant",       "error_description": "bad user credentials."     } 

requirement:

{       "success":false,       "error": "invalid_grant",       "error_description": "bad user credentials."     } 

or may customize json fully.

please me tried in many ways not working.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -