0
votes

I have taken the sample code from Docusign SDK to exchange token for user authentication. Followed all the steps given in the document. Provided valid user id, Integration key and configured private and public key correctly. It was working fine till last Friday. Is some thing happening today in docusign demo account?. I am getting " Invalid_grant " as response.

JWTLoginTest:

Exception: com.docusign.esign.client.ApiException: Error while requesting an access token: {"error":"invalid_grant"}

https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken

1
Please show the request. The example request on that page is curl --data "grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=eyJhb..." --request POST https://account-d.docusign.com/oauth/token. Do you have grant-type:jwt-bearer in yours? - Kartik
we are adding below values in the request. "assertion" and "grant_type" as like below .form.add("assertion", assertion); form.add("grant_type", "urn:ietf:params:oauth:grant-type:jwt-bearer"); - Matt
Try it first using curl in terminal and then do it with code. You may also ask docusign for support. - Kartik

1 Answers

0
votes

I suggest that you start with one of the new JWT Grant flow examples in the DocuSign github organization: