MyWebForms App sample app is to provide ISV developers with a practical example of how to sign documents using web forms with focused view and embedded signing. The application is Single Page Application leveraging the C# Docusign SDK. The SPA is created using React.js and .Net Web API. You can find a live instance at https://mywebforms.sampleapps.docusign.com.
MyWebForms demonstrates the following:
-
Authentication with Docusign via JWT Grant.
-
Personal Loan:
Docusign Features:
- Web Forms
- Single signer
- Templates
- Focused view
-
Auto Loan:
Docusign Features:
- Web Forms
- Multiple signers
- Embedded signing
- Templates
-
Sailboat Loan:
Docusign Features:
- Web Forms
- Templates
- Auto-place (anchor) positioning
- Embedded signing
- Create a Docusign Developer Account.
- Create an application on the Apps and Keys page.
- Press "GENERATE RSA" and save the generated key pairs (it will be used later in "Settings configuration" section to configure "private.key")
- Installed and configured Node.js
- Installed and configured Docker
- Installed and configured .Net 7.0
- Add all templates from folder 'Templates' to your account
- Add all web form configurations from folder 'WebForms' to your account
Create a copy of the file appsettings-example.json, save the copy as appsettings.json, and fill in the data:
- {IntegrationKey} - integration key of the application created in section "Create an application on the Apps and Keys page" above (string)
- Save generate private RSA key (section "Prerequisites") to the file \sample-app-MyWebForms-csharp\Docusign.MyWebForms\Docusign.MyWebForms\private.key
- {UserId} - ID of the test user
- {AccountId} - ID of the account that is connected to the test user
- {RedirectUri} - Internal redirection URL that is used during the embedded signing process. To run the app locally this should be
"http://localhost:5000/sign/completed"
- {PersonalLoanTemplateName} - The name for personal loan template which should be used when adding template to your account
- {AutoLoanTemplateName} - The name for auto loan template which should be used when adding template to your account
- {SailboatLoanTemplateName} - The name for sailboat loan template which should be used when adding template to your account
- Clone the git repository to your local machine
- Make the Settings configuration described above
- Open a terminal and navigate to \sample-app-MyWebForms-csharp\Docusign.MyWebForms\Docusign.MyWebForms\ClientApp folder
- Install required client application packages running the following command in the terminal:
npm install
- Start the client application running the following command in the terminal:
npm start
- Open a new terminal and navigate to \sample-app-MyWebForms-csharp\Docusign.MyWebForms
- Build the .Net solution:
dotnet build --configuration Debug
- Start the .NET application:
dotnet run --project .\Docusign.MyWebForms\Docusign.MyWebForms.csproj --configuration Debug
- Open a browser to localhost:5000 (if the page is not opened automatically).
-
Clone the git repository to your local machine
-
Make the Settings configuration described above
-
Open a terminal in the \sample-app-MyWebForms-csharp directory.
-
Build the docker image running the following command in the terminal:
docker build -f Docusign.MyWebForms/Docusign.MyWebForms/Dockerfile -t docusign-mywebforms .
-
Start the application (run the docker container) with the following command in the terminal:
docker run -p 80:80 -d docusign-mywebforms
-
Open a browser to localhost
This repository uses the MIT License. See the LICENSE file for more information.