Skip to main content

Hello, 

        I am developing an integration from Workday to DocuSign to pull the completed documents into Workday. I am getting following error when trying to authenticate to the endpoint - https://account-d.docusign.com/oauth/token to get the access token

Error code : badrequest
Response :{"error":"invalid_grant","error_description":"unsupported_grant_type"}

I have the following Grant type which works fine in Postman. In addition to grant type, assertion key is generated which is passed along with grant type in Workday

assertion=@{props{'jwt.assertion']}&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Postman:

 

Hey @Radhika

 

You would need to check in the Workday integration if they are receiving properly the values that you use and are currently working in your Postman configuration. Anything missing in the assertion or any missing value provided in the grant_type will make it fail. 

 

😎


Hi,

I am getting error while integrating “https://account-d.docusign.com/oauth/token” from PL/SQL.

{"error":"invalid_grant","error_description":"unsupported_grant_type"} with status 400.

 

Header>>> Content-Type-application/x-www-form-urlencoded

BODY >>

{
    "mode": "formdata",
    "formdata": r
        {
            "key": "grant_type",
            "value": "urn:ietf:params:oauth:grant-type:jwt-bearer",
            "type": "text"
        },
        {
            "key": "assertion",
            "value": "XXXX",
            "type": "text"
        }
    ]
}

 

I have tried with mode as ‘urlencoded’, still getting same error. I guess where i am doing the wrong.

 

Thanks

Salil


Reply