PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

REST Token not getting generated

jain0v1
New Contributor
New Contributor

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
 
 

1.png2.png3.png

 
1 REPLY 1

rushikeshvartak
All-Star
All-Star

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.