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
Post a Comment