forked from docusign/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
36 lines (34 loc) · 1.81 KB
/
ds_config_sample.py
File metadata and controls
36 lines (34 loc) · 1.81 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
# 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
"signer_email": "{SIGNER_EMAIL}",
"signer_name": "{SIGNER_NAME}",
"app_url": "http://localhost:5000", # 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",
"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",
# 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/",
"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": "./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"
}