You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Create a webhook listener (for local development)
56
+
Create a secure URL for your app to receive webhook notifications using ngrok.
57
+
58
+
#### Install Ngrok Tunnel (for local development)
59
+
```
60
+
https://ngrok.com/download
61
+
```
62
+
#### Run Ngrok Tunnel (for local development)
63
+
```
64
+
ngrok http 3000
65
+
```
66
+
#### Add your secure ngrok URL as an authorized host
67
+
* open `config/environments/development.rb`
68
+
* Change {NGROK_HOST} to the URL generated by ngrok in the previous step
69
+
```
70
+
config.hosts << "xxx-xx-xxx-xxx-xx.ngrok.io"
71
+
```
72
+
73
+
### Setup your custom DocuSign Connect configuration
74
+
75
+
#### Using a ruby script
41
76
The ruby script included with this project sets up a custom Connect configuration with the same settings that the hosted app uses at https://myconnectwebhook.sampleapps.docusign.com. You'll need to provide a name for your new custom connect configuration as well as the URL to publish which, if running locally using ngrok, should follow the format `https://{YOUR_NGROK_HOST}.ngrok.io/api/docusign/trigger/do_process.json`.
42
77
43
78
* Navigate to the root folder of the app
@@ -51,7 +86,7 @@ The ruby script included with this project sets up a custom Connect configuratio
51
86
* Provide the name and URL to publish for your connect configuration when prompted.
52
87
* Check https://admindemo.docusign.com/connect to view or edit your new custom Connect configuration!
* Add a name for your custom Connect configuration
@@ -81,11 +116,11 @@ The ruby script included with this project sets up a custom Connect configuratio
81
116
* Select "Enable Mutual TLS"
82
117
* "SAVE CONFIGURATION"
83
118
84
-
## Installation steps
119
+
## Running the app
85
120
86
121
**NOTE:** The first time you run the app with a new client id, you must grant consent for the application to perform actions on behalf of the user. Fill in your integration key and redirect url to the following consent url template and visit `https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature+impersonation+click.manage+click.send&client_id=#{jwt_integration_key}&redirect_uri=#{redirect_uri}` to grant consent.
87
122
88
-
### Running app using docker compose
123
+
### Running the app using docker compose
89
124
To build app:
90
125
```
91
126
docker compose build
@@ -130,15 +165,14 @@ brew install redis
130
165
brew services start redis
131
166
redis-server
132
167
```
133
-
#### Clone project
134
-
Clone project into folder `./sample-app-myconnectwebhook-ruby`
0 commit comments