Package: DocuSign.eSign.dll (8.0.0.0)
Environment: Asp.Net Core
Language: C#
Demo code:
DocuSignClient dsClient = new DocuSignClient(DocuSignClient.Demo_REST_BasePath);
DSAuth.OAuth.OAuthToken oaTok = default!;
List<string> scopes = new List<string>() { "signature", "impersonation" };
byte[] privateKey = File.ReadAllBytes("c:\\Test\\Private.key");
DSAuth.OAuth.OAuthToken tok = dsc.RequestJWTUserToken(
Properties["IntegrationKey"],
Propertiese"UserId"],
Propertiest"AuthServer"],
privateKey,
1,
scopes);
I have verified that the values for IntegrationKey, UserId, and the private key are set up in DocuSign correctly and turned on, and that I am using the correct values. I have verified that the authentication server is the correct one (demo.) But when I run this, it just hangs. No response. I have set this up to run asynchronously, and the same thing: it never resolves.
This used to work, but it broke some time in late October I think it was. All of the example code I can find from DocuSign uses the now deprecated ApiClient. Since this is ASP Core, I no longer have ServicePointManager, and I cannot find any documentation on how to set the security protocol type. Wits end here, any help would be appreciated.