PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 26, 2022

[FIXED] How to request a signature remotely from your own account in docusign with nodejs

 August 26, 2022     docusignapi, node.js     No comments   

Issue

I will try my best to explain my problem in as much depth as possible.

My usecase: I want to request my user to sign a document that I will be sending to his/her email through my nodejs application using my own docusign account.

https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-email-remote/

The above link is all I want except for one change. The authentication step. I don't want to prompt the user to authenticate their account to send the document. Instead, I would like to authenticate my own account, get token and send the document to my user's email. Just like mailgun, where you receive your authentication keys once, you store it into your env and you can keep sending emails through your account.

https://support.docusign.com/s/articles/How-do-I-get-signatures-on-a-document-New-DocuSign-Experience?language=en_US&rsc_301

The above link is a resource that can help to send the documents via docusign interface. I want to achieve the same using my nodejs application.

The question can be pretty confusing, so let me know if you need anymore clarification.


Solution

It appears you're asking about authentication. You want to use your account, not have your users log-in.

You can achieve this using JWT.

Please take a look at the MyHR Sample App as an example. It has two login buttons. One is using JWT and is hardcoded with an account, the other is letting you use Auth Code Grant and your account.

You want the JWT account button.

With JWT you impersonate a fixed user and that user is always going to be the one used for API calls.



Answered By - Inbar Gazit
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing