docusignapidocusign-sdk

DocuSign acquire user credentials C# SDK


We are using DocuSign (OAuth2 with scope: signature), we have problem in our integration tests as the refresh token expire after 30 days, so our tests will fail as the refresh token saved in credential.json file became invalid. It there any method in docusign SDK we can call to launch browser on docusign login page, where we can enter docusign account credentials, and get back new token credentials, so we can update our credentials.json file programmatically ?

I am just asking for method name.

In gmail api we used GoogleWebAuthorizationBroker.AuthorizeAsync() to solve this problem, so I am asking is there a class in docuSign SDK that do same functionality as this ?

Gmail


Solution

  • No. To regenerate the refresh token, the user would need to login again and generate a new authorisation code.

    However, you can take advantage of the extended scope to generate a new refresh token whenever you use the refresh token to generate an access token.

    If you are, building a service integration that doesn't require the user to login frequently, you might also consider JWT Authentication.