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.
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)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.