ConfigureJwtAuthorizationFlow-找不到或禁用了指定的集成商密钥 [英] ConfigureJwtAuthorizationFlow - The specified Integrator Key was not found or is disabled
问题描述
我正在使用DocuSign C#SDK(很抱歉,我是新来的)在工作中进行POC-在演示帐户中创建了集成密钥。
I am using DocuSign C# SDK (sorry I am new to this) doing a POC at work - created integration key in the demo account.
使用以下示例测试身份验证。
https://github.com/docusign/ docusign-csharp-client / blob / master / README.md
Using the below example to test authentication. https://github.com/docusign/docusign-csharp-client/blob/master/README.md
我一直收到此错误-找不到或禁用了指定的集成商密钥-
I keep getting this error - The specified Integrator Key was not found or is disabled -- even after creating the integration key again.
const string docuSignDemoIntegrationKey = "2ce4-3508-f3b-da8b74d79daf";
const string docuSignDemoApiUserName = "a1f8--4db8-9a39-2bd4f175";
string oauthBasePath = "account-d.docusign.com";
string privateKeyFilename = @"C:\WorkStation\Projects\DocuSign\PrivateKey2.pem";
int expiresInHours = 1;
string host = "https://demo.docusign.net/restapi";
string accountId = string.Empty;
ApiClient apiClient = new ApiClient(host);
apiClient.ConfigureJwtAuthorizationFlow(docuSignDemoIntegrationKey, docuSignDemoApiUserName, oauthBasePath, privateKeyFilename, expiresInHours);
AuthenticationApi authApi = new AuthenticationApi(apiClient.Configuration);
LoginInformation loginInfo = authApi.Login();
推荐答案
正如Ergin在他的评论中所述,您需要提供通话中的client_id(集成密钥)和私钥。
As Ergin mentioned in his comment, you need to provide both the client_id (integration key) and the private key in your call.
这篇关于ConfigureJwtAuthorizationFlow-找不到或禁用了指定的集成商密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!