Skip to content

Removing proxy and adding the default Demo baseURI #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions public/config_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@ config.IMPLICIT_SCOPES='signature';
// DocuSign Identity server
config.DS_IDP='https://account-d.docusign.com';

// Your private API CORS proxies
// Add additional entries for the demo and prod platforms that your
// users' accounts need
config.DS_API_CORS_PROXIES= {
'https://na2.docusign.net' : 'https://xxxproxy.example.com',
'https://na3.docusign.net' : 'https://xxxproxy.example.com',
'https://demo.docusign.net': 'https://xxxproxy.example.com',
}
// Your DocuSign base URI
config.DS_BASE_URI = 'https://demo.docusign.net';

// redirect authentication?
// true: the app redirects to the IdP
Expand Down
2 changes: 1 addition & 1 deletion src/OAuthImplicit.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class OAuthImplicit {
//
// Need to select the right proxy for the API call
// update the baseUri setting
let baseUri = config.DS_API_CORS_PROXIES[defaultAccount.base_uri];
let baseUri = config.DS_BASE_URI;
if (!baseUri) {
const msg = `Problem: no proxy for ${defaultAccount.base_uri}.`;
log(msg);
Expand Down