Code Monkey home page Code Monkey logo

eg-01-node-jwt's Introduction

Example 1: Node.JS Service Integration

Repository: eg-01-node-jwt

Screencasts

A screencast for this launcher is available:

Create IK video

Introduction

This software is an example of a System Integration. This type of application interacts with DocuSign on its own. There is no user interface and no user is present during normal operation.

The application uses the OAuth JWT grant flow to impersonate a user in the account.

This launcher example includes two examples:

  1. Send an html, Word, and PDF file in an envelope to be signed.
  2. List the envelopes in the account that are less than 30 days old.

Installation

Requirements: Node v8.10 or later

Download or clone this repository. Then:

cd eg-01-node-jwt
npm install

There are two ways to configure the example's settings:

  1. Edit the dsConfig.js file in the root directory of the example.
  2. Set environment variables before running the example.

Creating the Integration Key

Your DocuSign Integration Key (clientId) must be configured for a JWT OAuth authentication flow:

  • Create a public/private key pair for the key. Store the private key in a secure location. You can use a file or a key vault.

  • The example requires the private key. Provide it as a string, as configuration setting privateKey.

  • If you will be using individual permission grants, you must create a Redirect URI for the key. Any URL can be used. By default, this example uses https://www.docusign.com This redirect url is just used for obtaining consent. You can use the docusign.com default in your test example.

    For production, DocuSign recommends using Organization administration to proactively grant consent to the client ID, the Integration Key.

The impersonated user's guid

The JWT will impersonate a user within your account. The user can be an individual or a user representing a group such as "HR".

Your application will need the guid assigned to the user. The guid value for each user in your account is available from the Administration tool in the Users section.

To see a user's guid, Edit the user's information. On the Edit User screen, the guid for the user is shown as the API Username.

Run the examples

npm start

Support, Contributions, License

Submit support questions to StackOverflow. Use tag docusignapi.

Contributions via Pull Requests are appreciated. All contributions must use the MIT License.

This repository uses the MIT license, see the LICENSE file.

eg-01-node-jwt's People

Contributors

dipta007 avatar inbargazit avatar larryklugerds avatar mattkingds avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.