简体   繁体   English

用于发送 Docusign 电子签名请求的服务帐户

[英]Service account to send Docusign eSignature requests

I've signed up for a developer account with Docusign.我已经在 Docusign 注册了一个开发者帐户。 We have about 15 users that access a Windows Forms page from another program where they fill out the proper information and click a button that calls a.NET Core Web API which creates an envelope and sends to the signer.我们有大约 15 个用户从另一个程序访问 Windows Forms 页面,他们在其中填写正确的信息并单击一个调用 .NET Core Web API 的按钮,该按钮创建一个信封并发送给签名者。 Those 15 users don't have accounts in Docusign and don't need them to.这 15 位用户在 Docusign 中没有帐户,也不需要他们这样做。 I want to use one admin or service account that will send and receive the emails, but I can't figure out how to do this.我想使用一个管理员或服务帐户来发送和接收电子邮件,但我不知道该怎么做。

I used my name for the developer account and now all my (test) Docusign emails show they are from me and once the signer signs, my email receives the signed documents.我将我的名字用于开发者帐户,现在我所有的(测试)Docusign 电子邮件都显示它们来自我,一旦签名者签名,我的 email 就会收到签名的文件。 I've tried creating another "Admin" account, but I don't see any way to associate that user as an "API User".我试过创建另一个“管理员”帐户,但我看不到任何将该用户关联为“API 用户”的方法。 When I try using that user's GUID as the ImpersonatedUserID, my RequestJWTUserToken request comes back with "consent_required".当我尝试将该用户的 GUID 用作 ImpersonatedUserID 时,我的 RequestJWTUserToken 请求返回“consent_required”。 But, when I go to the link I just get an error with "The client id provided is not registered with Docusign".但是,当我 go 到链接时,我只是收到“提供的客户端 ID 未在 Docusign 注册”的错误。

Everything in the Web API is working perfectly except for the emails showing they are from me and then the signed docs coming back to my email. This should be an easy thing to change the user, but apparently it's not, or I just can't figure it out. Web API 中的所有内容都运行良好,除了显示它们来自我的电子邮件,然后签名的文档返回到我的 email。这应该很容易改变用户,但显然不是,或者我不能想办法。

You were on your way to fix this, but didn't follow through.你正准备解决这个问题,但没有坚持到底。

  1. Create new user (you did it)创建新用户(你做到了)
  2. Find the new userId (you did)找到新的 userId(你找到了)
  3. Update JRequestJWTUserToken (you did)更新JRequestJWTUserToken (你做了)
  4. Consent error - expected, the new user did not consent.同意错误 - 预期,新用户未同意。
  5. Obtain consent.获得同意。 You need to have a URL built correctly like this to do this:您需要像这样正确构建 URL 才能执行此操作:

https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f&redirect_uri=http://example.com/callback/ https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=7c2b8d7e-xxxx-xxxx-xxxx-cda8a50dd73f&redirect_uri=http://example.com/callback/

Once you do 5, you need to log in with the same new user account you created (you may be automatically logged in with your original developer account, so log out) and provide consent.完成第 5 步后,您需要使用您创建的相同新用户帐户登录(您可能会自动使用您的原始开发者帐户登录,因此请注销)并提供同意。

Then step 4 will work just fine.然后第 4 步就可以正常工作了。

https://developers.docusign.com/platform/auth/consent/obtaining-individual-consent/ https://developers.docusign.com/platform/auth/consent/obtaining-individual-consent/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM