OAM OAuth service throws "java.lang.ClassCastException: " while requesting for access token!
OAM OAuth service throws "java.lang.ClassCastException: " while requesting for access token!
============================================================================================================
We are trying to integrate OAM with Google Home. We use Googles's oauth playground to validate the Oauth configuration.
While testing
Step 1: OAuth client calls OAM Oauth authorize end point with required parameters. After authentication OAM returns the Authorization code.
Step 2: When OAuth client tries to retrieve Refresh token by passing Authorization code, OAM is returning Json response
{
"error_description": "java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long",
"error": "server_error"
}
Error message seen in oam-server1.out log
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long