Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Oauth V2 Generate Access Token - class java.lang.Integer cannot be cast to class java.lang.String

Oauth V2 Generate Access Token is throwing this error 

{
"fault": {
"faultstring": "class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')",
"detail": {
"errorcode": "Internal Server Error"
}
}
}
 
Below is the policy
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OAuthV2 async="false" continueOnError="false" enabled="true" name="OA_GenerateToken_App">
<DisplayName>OA_GenerateToken_App</DisplayName>
<StoreToken>true</StoreToken>
<Operation>GenerateAccessToken</Operation>
<!--Expires in milliseconds-->
<ExpiresIn ref="expires_in">350000000</ExpiresIn>
<SupportedGrantTypes>
<GrantType>password</GrantType>
</SupportedGrantTypes>
<Scope>scope</Scope>
<GenerateResponse>true</GenerateResponse>
<ExternalAuthorization>false</ExternalAuthorization>
<!-- <ExternalAccessToken>request.header.access_token</ExternalAccessToken>-->
<ExternalAccessToken>private.jwtmessage</ExternalAccessToken>
</OAuthV2>
 
 
 
 
0 14 502
14 REPLIES 14