forked from BD-Python-PIP/code-examples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathds_config_sample.py
More file actions
51 lines (49 loc) · 3.02 KB
/
ds_config_sample.py
File metadata and controls
51 lines (49 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ds_config.py
#
# DocuSign configuration settings
DS_CONFIG = {
"ds_client_id": "{INTEGRATION_KEY_AUTH_CODE}", # The app's DocuSign integration key
"ds_client_secret": "{SECRET_KEY}", # The app's DocuSign integration key's secret
"organization_id": "{ORGANIZATION_ID}", # A GUID value that identifies the organization
"signer_email": "{SIGNER_EMAIL}",
"signer_name": "{SIGNER_NAME}",
"app_url": "http://localhost:3000", # The URL of the application. Eg http://localhost:5000
# NOTE: You must add a Redirect URI of appUrl/ds/callback to your Integration Key.
# Example: http://localhost:5000/ds/callback
"authorization_server": "https://account-d.docusign.com",
"click_api_client_host": "https://demo.docusign.net/clickapi",
"rooms_api_client_host": "https://demo.rooms.docusign.com/restapi",
"monitor_api_client_host": "https://lens-d.docusign.net",
"admin_api_client_host": "https://api-d.docusign.net/management",
"maestro_api_client_host": "https://demo.services.docusign.net/",
"webforms_api_client_host": "https://apps-d.docusign.com/api/webforms/v1.1",
"allow_silent_authentication": True, # a user can be silently authenticated if they have an
# active login session on another tab of the same browser
"target_account_id": None, # Set if you want a specific DocuSign AccountId,
# If None, the user's default account will be used.
"demo_doc_path": "demo_documents",
"doc_salary_docx": "World_Wide_Corp_salary.docx",
"doc_docx": "World_Wide_Corp_Battle_Plan_Trafalgar.docx",
"doc_pdf": "World_Wide_Corp_lorem.pdf",
"doc_terms_pdf": "Term_Of_Service.pdf",
"doc_txt": "Welcome.txt",
"doc_offer_letter": "Offer_Letter_Demo.docx",
# Payment gateway information is optional
"gateway_account_id": "{DS_PAYMENT_GATEWAY_ID}",
"gateway_name": "stripe",
"gateway_display_name": "Stripe",
"github_example_url": "https://github.com/docusign/code-examples-python/tree/master/app/eSignature/examples/",
"monitor_github_url": "https://github.com/docusign/code-examples-python/tree/master/app/monitor/examples/",
"admin_github_url": "https://github.com/docusign/code-examples-python/tree/master/app/admin/examples/",
"click_github_url": "https://github.com/docusign/code-examples-python/tree/master/app/click/examples/",
"connect_github_url": "https://github.com/docusign/code-examples-python/tree/master/app/connect/examples/",
"example_manifest_url": "https://raw.githubusercontent.com/docusign/code-examples-csharp/master/manifest/CodeExamplesManifest.json",
"documentation": "", # Use an empty string to indicate no documentation path.
"quickstart": "{QUICKSTART_VALUE}"
}
DS_JWT = {
"ds_client_id": "{INTEGRATION_KEY_JWT}",
"ds_impersonated_user_id": "{IMPERSONATED_USER_ID}", # The id of the user.
"private_key_file": "./app/private.key", # Create a new file in your repo source folder named private.key then copy and paste your RSA private key there and save it.
"authorization_server": "account-d.docusign.com"
}