Skip to main content

Hi,

Currently to get JWT access token we are following these two steps. 

Step -1: manual action:

Currently to get JWT access token we need to manually prepare JWT JSON and here we need to add start time, expire time and need to generate JWT token.

Step-2: Rest API

From the above generated JWT token we are execute DocuSign API to get the access token “https://account-d.docusign.com/oauth/token?grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<JWT token>.
 

Is there any way so that with the user credentials/data we need to fire only one API to get the access token no need of again manual generation of JWT token. Is there any way to avoid manual action. 

 

@Harish reddy 

The JWT generation is a 2 step process to create and obtain an access token, as described here. There is no need for any manual steps in the generation to prepare the JWT JSON. You can and should automate all fields like start time and expiration so there is no manual step involved after it has been set up.

The initial consent step is only once and can be removed for the users if you add it as Trusted App in the Admin area.


Thank you @Michael.Rave 


Hi @Michael.Rave ,
Is there any rest API available to generate JWT token from JWT JSON having user credentials , public and private keys, start and expiration times.


@Harish reddy 

Have you checked the Quickstart and various SDKs available? You can generate JWT token via Postman, C#, Java, PHP, etc.

 


Hi @Harish reddy to add to Michael’s reply, all SDK’s provide a function/method that allows to get JWT token from a single call. For example the C# SDK method is RequestJWTUserToken 


https://github.com/docusign/docusign-esign-csharp-client/blob/master/sdk/src/DocuSign.eSign/Client/DocuSignClient.cs#L925C33-L925C52

 

I hope this helps

 


Thank you @Michael.Rave , @Ivan.Dinkov ,

 

I need to generate token using postman/http requests only.


@Harish reddy 

You can download the Docusign Postman Collection for eSignature here. Under “Authentication” you will find the required calls to generate the JWT token.


Thank you @Michael.Rave 


Reply