| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
PLEASE! Share your feedback in a two-question survey.
If you downloaded this project using the Quickstart tool, it may be configured in one of three ways:
Installation and running instructions vary depending on the configuration. Follow the link that matches your project type to get started.
This GitHub repo includes code examples for the Web Forms API, Docusign Admin API, Click API, eSignature REST API, Monitor API, and Rooms API.
This repo is a Ruby on Rails application that supports the following authentication workflows:
Authentication with Docusign via Authorization Code Grant. When the token expires, the user is asked to re-authenticate. The refresh token is not used.
Authentication with Docusign via JSON Web Token (JWT) Grant. When the token expires, it updates automatically.
For more information about the scopes used for obtaining authorization to use the eSignature API, see Required scopes.
For a list of code examples that use the eSignature API, see the How-to guides overview on the Docusign Developer Center.
Note: To use the Rooms API, you must also create your Rooms developer account. Examples 4 and 6 require that you have the Docusign Forms feature enabled in your Rooms for Real Estate account. For more information about the scopes used for obtaining authorization to use the Rooms API, see Required scopes.
For a list of code examples that use the Rooms API, see the How-to guides overview on the Docusign Developer Center.
For more information about the scopes used for obtaining authorization to use the Click API, see Required scopes
For a list of code examples that use the Click API, see the How-to guides overview on the Docusign Developer Center.
Note: To use the Monitor API, you must also enable Docusign Monitor for your organization.
For information about the scopes used for obtaining authorization to use the Monitor API, see the scopes section.
For a list of code examples that use the Monitor API, see the How-to guides overview on the Docusign Developer Center.
Note: To use the Admin API, you must create an organization in your Docusign developer account. Also, to run the Docusign CLM code example, CLM must be enabled for your organization.
For information about the scopes used for obtaining authorization to use the Admin API, see the scopes section.
For a list of code examples that use the Admin API, see the How-to guides overview on the Docusign Developer Center.
The Web Forms API is available in all developer accounts, but only in certain production account plans. Contact Docusign Support or your account manager to find out whether the Web Forms API is available for your production account plan.
For more information about the scopes used for obtaining authorization to use the Web Forms API, see Required scopes.
For a list of code examples that use the Web Forms API, see the How-to guides overview on the Docusign Developer Center.
Note: If you downloaded this code using Quickstart from the Docusign Developer Center, skip items 1 and 2 as they were automatically performed for you.
A free Docusign developer account; create one if you don't already have one.
A Docusign app and integration key that is configured for authentication to use either Authorization Code Grant or JWT Grant.
This video demonstrates how to obtain an integration key.
To use Authorization Code Grant, you will need an integration key and a secret key. See Installation steps for details.
To use JWT Grant, you will need an integration key, an RSA key pair, and the User ID GUID of the impersonated user. See Installation steps for JWT Grant authentication for details.
For both authentication flows:
If you use this launcher on your own workstation, the integration key must include a redirect URI of
http://localhost:3000/auth/docusign/callback
If you host this launcher on a remote web server, set your redirect URI as
{base_url}/auth/docusign/callback
where {base_url} is the URL for the web app.
Ruby version 3.3 or later
Note: If you downloaded this code using Quickstart from the Docusign Developer Center, skip step 4 as it was automatically performed for you.
Note: If you downloaded this code using Quickstart from the Docusign Developer Center, skip step 4 as it was automatically performed for you. Also, in order to select JSON Web Token authentication in the launcher, in config/appsettings.yml, change quickstart to false.
See Docusign Quickstart overview on the Docusign Developer Center for more information on how to run the JWT grant remote signing project and the Authorization Code Grant embedded signing project.
Run in terminal:
$ cd <Quickstart folder>/quick_acg $ bundler install $ rails s
Open a browser to http://localhost:3000
Run in terminal:
$ cd jwt_console_project $ ruby jwt_console.rb
When using the Ruby launcher on a Windows machine you may get the following error:
SSL peer certificate or SSH remote key was not OK
This error occurs because you’re attempting to use the Ruby launcher with a self-signed certificate or without SSL/HTTP security. The API calls from Ruby SDKs are using a built-in Curl tool that is enforcing the SSL requirement. You can disable this security check to run the launcher in an insecure manner on your developer machine.
- It is highly recommended that you don’t disable this security check
- in a production environment or in your integration.
- This method is offered here solely as a means to enable you to
- develop quickly by lowering the security bar on your local machine.Find the root folder for your Ruby gems (in this case, a 64-bit version of Ruby 3.3):
C:\Ruby33-x64\lib\ruby\gems\3.3.0\gems\
Find the relevant Docusign Ruby SDK you are using. The name always starts with “docusign”; for instance, Docusign Click SDK version 1.0.0:
C:\Ruby33-x64\lib\ruby\gems\3.3.0\gems\docusign_click-1.0.0\lib\docusign_click
Find the configuration.rb file in that folder. Modify the following two lines in the configuration.rb file, replacing true with false:
@verify_ssl = true @verify_ssl_host = true
Once this is complete, you can run your Ruby on Rails application again and you should be able to make API calls on your localhost.
When using the Ruby launcher on OSX you may get the following error:
Faraday::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain))
Please update SSL certificates if rvm is your version manager. Or check other steps for different scenarios.
$ rvm osx-ssl-certs status all $ rvm osx-ssl-certs update all
To use the payments code example, create a test payment gateway on the Payments page in your developer account. See Configure a payment gateway for details.
Once you've created a payment gateway, save the Gateway Account ID GUID to appsettings.yml.
This repository uses the MIT License. See LICENSE for details.
Pull requests are welcomed. Pull requests will only be considered if their content uses the MIT License.
| Back | FazBrowse Home | New Git URL |