I am trying to implement a spring boot application with DocuSign for getting all Envelopes and generating signing ceremony URL links for individual Envelopes which will be displayed in my app to the signer. I am not able to do it because I am not getting how to do authentication and which type of authentication I need to use. Should I use SDK or without SDK I should do? Any example source code for reference.
CodePudding user response:
From your question, it sounds like the people who will use your app are signers. Therefore they will typically not have a DocuSign account login.
So:
- You should use DocuSign's JWT OAuth flow. Use it to obtain an access token for a "system user" in your DocuSign account such as [email protected]
- Use the user version of the JWT flow, not the application version. Here is the implementation of the requestJWTUserToken method.
- Best would be to include the SDK in your project and call the
requestJWTUserToken
method. If you can't do that, then you can copy the source into your app. - The SDK works with Spring-Boot.
- Use the resulting access token in your app to call the eSignature REST API