phpdocusignapi

How to use Docusign API without having the user login


I've been pulling my hair out trying to get DocuSsign to work with my website.

The basic idea is:

  1. Anonymous user lands on page with form
  2. User fills out form
  3. Before submit generate PDF from details
  4. Ask user to sign by clicking button
  5. Takes user details and document and redirects to DocuSign for user to sign
  6. Redirects back to my site with thank you / success

I'm a PHP dev, worked with plenty of API's, I can handle most of that. The problem is that getting an oAuth Token in order to use the API. When I use the oauth/auth endpoint, it returns a HTML DocuSign login form.

I do not want the user to sign in. I want them to be able to just click a button, sign with docusign and come back. They shouldn't have to have a DocuSine account. I want the website to be the logged in user in that makes sense?

Am I missing something obvious?

Many thanks, Jon

REF: https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-in-app-embedded/

FYI:


Solution

  • Two options:

    1. You can use PowerForms. PowerForms are created from eSignature templates and a URL is generated to allow anyone to sign them without having to have an account or sign-in or anything at all.
    2. Use JWT with a system account and use embedded signing. This way the "sender" is always the same user that was used to authenticate for JWT but anyone can sign without signing in.