Skip to content

Commit a4922e7

Browse files
authored
Merge pull request docusign#39 from docusign/DEVDOCS-6126
DEVDOCS-6126: IDV fix to check workflow name
2 parents be706e4 + af7af0c commit a4922e7

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

app/eSignature/examples/eg023_idv_authentication/controller.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def worker(args):
6666
# Create your signature tab
6767
sign_here1 = SignHere(
6868
name="SignHereTab",
69-
x_position="75",
70-
y_position="572",
69+
x_position="200",
70+
y_position="160",
7171
tab_label="SignHereTab",
7272
page_number="1",
7373
document_id="1",
@@ -109,10 +109,20 @@ def get_workflow(args):
109109

110110
# Check that idv authentication is enabled
111111
if workflow_response.identity_verification:
112-
workflow_id = workflow_response.identity_verification[0].workflow_id
113-
app.logger.info("We found the following workflowID: " + workflow_id)
112+
# Find the workflow ID corresponding to the name "DocuSign ID Verification"
113+
workflow_id = None
114+
115+
for workflow in workflow_response.identity_verification:
116+
if workflow.default_name == "DocuSign ID Verification":
117+
workflow_id = workflow.workflow_id
118+
break
119+
120+
if workflow_id is not None:
121+
app.logger.info("We found the following workflowID: " + workflow_id)
122+
else:
123+
app.logger.info("No workflowID was found for DocuSign ID Verification.")
124+
114125
session['workflow_id'] = workflow_id
115-
116126
return workflow_id
117127

118128
else:

app/templates/eg023_idv_authentication.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ <h4>23. Require ID verification (IDV) for a recipient</h4>
4444
{% else %}
4545
<b>ID verification is available to develop API integrations in the DocuSign Developer account,
4646
but is not enabled by default. To enable IDV in your Developer account and/or production account,
47-
contact your DocuSign Account Manager or Partner Account Manager</b>
47+
contact your DocuSign Account Manager or Partner Account Manager, or reach out to
48+
<a target='_blank' href='https://support.docusign.com'>Support</a>.</b>
4849
{% endif %}
4950

5051
{% endblock %}

0 commit comments

Comments
 (0)