I have a REST connection where connection json is not able to generate the token
Below is the connection json being used
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_secret": "<client_secret>",
"client_id": "<client_id>",
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcdefgh"
}
}
}
Below is the snapshot from postman config where token gets generated sucecssfully