I am currently working on a project that is using JDBCTokenStore. By default it return
{
"access_token": "<somedata>",
"token_type": "bearer",
"expires_in": <time>,
"scope": "read write"
}
Is there a way to customize this response? I tried using TokenEnhancer, but that saves information in DB which is not what I want.
I just want to customize the response and send it back to end user (add an additional parameter like state of the user which changes dynamically based on some criteria).
{
"access_token": "<somedata>",
"token_type": "bearer",
"expires_in": <time>,
"scope": "read write"
"state": <true or false>
}
Any help here would be highly appreciated.