docusign / code-examples-csharp Goto Github PK
View Code? Open in Web Editor NEWDocusign C# code examples and launcher
Home Page: https://developers.docusign.com/
License: MIT License
Docusign C# code examples and launcher
Home Page: https://developers.docusign.com/
License: MIT License
Hello Team,
We are Requesting JWT token using RequestJWTUserToken() method along with the valid (required) parameters. but we could see that sometimes it is working fine and sometimes not.
We are getting below error with no response body.
Error while requesting server, received a non successful HTTP code with response Body: : at DocuSign.eSign.Client.DocuSignClient.RequestJWTUserToken(String clientId, String userId, String oauthBasePath, Byte[] privateKeyBytes, Int32 expiresInHours, List
1 scopes)`
We have given the scope as "signature impersonation" for the DocuSign Demo Account.
Please let us know.
This is such a wonderful job and great resource for someone new to DocuSign. We really appreciate it!!
May I offer one small refactoring suggestion, please? Could the prefixes of the 2 properties in bold be modified to 'SignerEmail' and 'SignerName' in light of the naming convention used for the class name of 'EmbeddedSigningModel'... Thank you!
namespace DocuSign.CodeExamples.Views
{
public class EmbeddedSigningModel
{
public string SingerEmail { get; set; }
public string SingerName { get; set; }
}
}
When i am trying to link user with organization it is giving me 400 error
POST https://admindemo.docusign.com/admin/api/organizationapi/post?uri=%2Fmanagement%2Fv1%2Forganizations 400 (Bad Request)
RuntimeBinderException: 'DocuSign.CodeExamples.ESignature.Models.CodeExampleText' does not contain a definition for 'LinksToAPIMethod'
Error when running solution due to property names accessed through ViewBag (Api vs API)
I got this error while request JWT token.
Step: 1
so i request to
"https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id={clinet_id}&redirect_uri=https://localhost:44333/ds/login?authType=JWT#/username"
Step:2
Redirect To me on authorized page
Step: 3
Afte Accept redirect on login page and again try to Authorzation with JWT token but still getting same error as above.
setting on docusign as per below i gave Permissions for "signature impersonation" in my docusign account.
can you please help me what i wrong in it. i check another linked also "https://stackoverflow.com/questions/63713136/docusign-error-while-requesting-server-received-a-non-successful-http-code-comp" but i already include the impersonation scope but don't know why always getting same error.
IDE: Visual Studio 2022
Solution: Quick_ACG
OS: Windows 11
I used this article https://developers.docusign.com/docs/esign-rest-api/quickstart/ to generate the code.
In both "Authorization Code Grant embedded signing example" and "Multiple code examples, Authorization Code Grant and JWT Grant" scenarios Quick ACG project is not working.
In "Authorization Code Grant embedded signing example" scenario the build is failing with error
Source file 'C:\s\Quickstart App-1-c#\Quick_ACG\..\launcher-csharp\eSignature\Controllers\EmbeddedSigningCeremony.cs' could not be found.
In "Multiple code examples, Authorization Code Grant and JWT Grant" scenario I receive this error in runtime
System.InvalidOperationException: The view 'quickEmbeddedSigning' was not found. The following locations were searched:
/Areas/eSignature/Views/EmbeddedSigningCeremony/quickEmbeddedSigning.cshtml
/Areas/eSignature/Views/Shared/quickEmbeddedSigning.cshtml
/Views/Shared/quickEmbeddedSigning.cshtml
/Pages/Shared/quickEmbeddedSigning.cshtml
at Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable`1 originalLocations)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
I am using c# docusign quick start. According to document when i use createSignature method and pass imagebase64, signature name, uri etc, it only saves signature name, further more when i trigger embedded document signature method from local host i cant see saved signatures in options
.net 5 is EOF and no longer supported
As pointed out by @InbarGazit in the comments of PR #26 (comment), EmbeddedSigningModel
doesn't appear to be used and can be removed.
Raised PR #27 for this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.