Skip to content

Commit 9de8e42

Browse files
authored
changing port to 3000 (#69)
1 parent e7571c4 commit 9de8e42

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For a list of code examples that use the Admin API, select the Node.js tab under
6363

6464
For both authentication flows:
6565

66-
If you use this launcher on your own workstation, the integration key must include redirect a URI of http://localhost:5000/ds/callback
66+
If you use this launcher on your own workstation, the integration key must include redirect a URI of http://localhost:3000/ds/callback
6767

6868
If you host this launcher on a remote web server, set your redirect URI as
6969

@@ -84,11 +84,11 @@ For a list of code examples that use the Admin API, select the Node.js tab under
8484
1. To configure the launcher for [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) authentication, create a copy of the file config/appsettings.example.json and save the copy as config/appsettings.json.
8585
1. Add your integration key. On the [Apps and Keys](https://admindemo.docusign.com/authenticate?goTo=apiIntegratorKey) page, under **Apps and Integration Keys**, choose the app to use, then select **Actions > Edit**. Under **General Info**, copy the **Integration Key** GUID and save it in appsettings.json as your `dsClientId`.
8686
1. Generate a secret key, if you don’t already have one. Under **Authentication**, select **+ ADD SECRET KEY**. Copy the secret key and save it in appsettings.json as your `dsClientSecret`.
87-
1. Add the launcher’s redirect URI. Under **Additional settings**, select **+ ADD URI**, and set a redirect URI of http://localhost:5000/ds/callback. Select **SAVE**.
87+
1. Add the launcher’s redirect URI. Under **Additional settings**, select **+ ADD URI**, and set a redirect URI of http://localhost:3000/ds/callback. Select **SAVE**.
8888
1. Set a name and email address for the signer. In appsettings.json, save an email address as `signerEmail` and a name as `signerName`.
8989
**Note:** Protect your personal information. Please make sure that appsettings.json will not be stored in your source code repository.
9090
1. Run the launcher: `npm start`
91-
1. Open a browser to http://localhost:5000
91+
1. Open a browser to http://localhost:3000
9292

9393
### Installation steps for JWT Grant authentication
9494

@@ -102,11 +102,11 @@ Also, in order to select JSON Web Token authentication in the launcher, in confi
102102
1. Add your User ID. On the [Apps and Keys](https://admindemo.docusign.com/authenticate?goTo=apiIntegratorKey) page, under **My Account Information**, copy the **User ID** GUID and save it in appsettings.json as your `impersonatedUserGuid`.
103103
1. Add your integration key. On the [Apps and Keys](https://admindemo.docusign.com/authenticate?goTo=apiIntegratorKey) page, under **Apps and Integration Keys**, choose the app to use, then select **Actions > Edit**. Under **General Info**, copy the **Integration Key** GUID and save it in apsettings.json as your `dsClientId`.
104104
1. Generate an RSA key pair, if you don’t already have one. Under **Authentication**, select **+ GENERATE RSA**. Copy the private key, and save it in a new file named config/private.key.
105-
1. Add the launcher’s redirect URI. Under **Additional settings**, select **+ ADD URI**, and set a redirect URI of http://localhost:5000/ds/callback. Select **SAVE**.
105+
1. Add the launcher’s redirect URI. Under **Additional settings**, select **+ ADD URI**, and set a redirect URI of http://localhost:3000/ds/callback. Select **SAVE**.
106106
1. Set a name and email address for the signer. In appsettings.json, save an email address as `signerEmail` and a name as `signerName`.
107107
**Note:** Protect your personal information. Please make sure that appsettings.json will not be stored in your source code repository.
108108
1. Run the launcher: `npm start`
109-
1. Open a browser to http://localhost:5000
109+
1. Open a browser to http://localhost:3000
110110
1. On the black navigation bar, select **Login**.
111111
1. From the picklist, select **JWT (JSON Web Token)** > **Authenticate with DocuSign**.
112112
1. When prompted, log in to your DocuSign developer account. If this is your first time using the app, select **ACCEPT** at the consent window.

config/appsettings.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"impersonatedUserGuid": "{IMPERSONATED_USER_ID}",
77
"signerEmail": "{SIGNER_EMAIL}",
88
"signerName": "{SIGNER_NAME}",
9-
"appUrl": "http://localhost:5000",
9+
"appUrl": "http://localhost:3000",
1010
"production": false,
1111
"debug": true,
1212
"sessionSecret": "12345",

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const {
4747
eg001admin, eg002admin, eg003admin, eg004admin, eg005admin
4848
} = require("./lib/admin/controllers");
4949

50-
const PORT = process.env.PORT || 5000;
50+
const PORT = process.env.PORT || 3000;
5151
const HOST = process.env.HOST || 'localhost';
5252
const max_session_min = 180;
5353
const csrfProtection = csrf({ cookie: true });

0 commit comments

Comments
 (0)