获得控制台应用程序的同意
Getting Consent For A Console Application
我正在尝试创建一个控制台程序来获取最后一天的所有信封电子邮件主题。
我在同意方面遇到问题,并且不断收到错误消息:
DocuSign.eSign.Client.ApiException: 'Error while requesting server,
received a non successful HTTP code Completed with response Body:
{"error":"consent_required"}'
我在 运行 以下代码后收到此消息:
var apiClient = new ApiClient();
string ik = _configuration.IntegrationKey;
string userId = _configuration.UserId;
string authServer = _configuration.AuthServer;
string rsaKey = DSHelper.ReadFileContent(DSHelper.PrepareFullPrivateKeyFilePath(_configuration.PrivateKeyFile));
OAuth.OAuthToken authToken = apiClient.RequestJWTUserToken(ik,
userId,
authServer,
Encoding.UTF8.GetBytes(rsaKey),
1);
我了解我需要使用此处的 DocuSign 管理门户步骤“同意内部应用程序”:How to obtain admin consent for internal applications/
然而,即使在将我的应用程序添加到连接的应用程序列表后,我仍然收到“{"error":"consent_required"}" 错误。
如有任何帮助,我们将不胜感激!
对于特定集成和用户,每次只需要一次同意。
由于您只有一个用户,因此您只需执行一次即可。
为您的 IK 添加 https://www.docusign.com as a valid redirect in the Apps and Keys page 后,打开浏览器访问此 URL:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<YOUR_IK>&redirect_uri=https://www.docusign.com
(更新你的 IK)
我正在尝试创建一个控制台程序来获取最后一天的所有信封电子邮件主题。
我在同意方面遇到问题,并且不断收到错误消息:
DocuSign.eSign.Client.ApiException: 'Error while requesting server, received a non successful HTTP code Completed with response Body: {"error":"consent_required"}'
我在 运行 以下代码后收到此消息:
var apiClient = new ApiClient();
string ik = _configuration.IntegrationKey;
string userId = _configuration.UserId;
string authServer = _configuration.AuthServer;
string rsaKey = DSHelper.ReadFileContent(DSHelper.PrepareFullPrivateKeyFilePath(_configuration.PrivateKeyFile));
OAuth.OAuthToken authToken = apiClient.RequestJWTUserToken(ik,
userId,
authServer,
Encoding.UTF8.GetBytes(rsaKey),
1);
我了解我需要使用此处的 DocuSign 管理门户步骤“同意内部应用程序”:How to obtain admin consent for internal applications/
然而,即使在将我的应用程序添加到连接的应用程序列表后,我仍然收到“{"error":"consent_required"}" 错误。
如有任何帮助,我们将不胜感激!
对于特定集成和用户,每次只需要一次同意。 由于您只有一个用户,因此您只需执行一次即可。
为您的 IK 添加 https://www.docusign.com as a valid redirect in the Apps and Keys page 后,打开浏览器访问此 URL:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<YOUR_IK>&redirect_uri=https://www.docusign.com
(更新你的 IK)