ConfigureJwtAuthorizationFlow - The specified Inte

2019-07-29 07:00发布

问题:

I am using DocuSign C# SDK (sorry I am new to this) doing a POC at work - created integration key in the demo account.

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();

回答1:

As Ergin mentioned in his comment, you need to provide both the client_id (integration key) and the private key in your call.



标签: docusignapi