oauth-2.0docusignapi

i am use OAuth 2.0 Flow to get Authorization code of docusign. but why after hit API appear docusign login screen


I am using the OAuth 2.0 Authorization Code flow to get an authorization code. However, after calling the API, the DocuSign login screen appears. After logging in, we receive the authorization code. But we need the authorization code without having to log in to DocuSign again. Can you please help?


Solution

  • Summary: the user only needs to authenticate once.

    Since your users are present, you should use authorization code grant. Use scopes signature%20extended (the %20 is a space)

    Then use the refresh token when the access token expires.

    Since you use the extended scope, you'll receive a new refresh token good for another 30 days. So if you use DocuSign API once a month, your user will never again need to authenticate.

    JWT is only for cases where the user is not present to authenticate.