Skip to content

Commit 0161d75

Browse files
authored
Merge pull request #148 from docusign/updating-focused-view
updating JS library link, IK variable, and codeDepot markers
2 parents 9c96f89 + 6c263ac commit 0161d75

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

launcher-csharp/eSignature/Examples/FocusedView.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static (string, string) SendEnvelopeWithFocusedView(
5555
//ds-snippet-start:eSign44Step5
5656
RecipientViewRequest viewRequest = MakeRecipientViewRequest(signerEmail, signerName, returnUrl, signerClientId, pingUrl);
5757

58-
// call the CreateRecipientView API
58+
// call the CreateRecipientView endpoint
5959
ViewUrl results1 = envelopesApi.CreateRecipientView(accountId, envelopeId, viewRequest);
6060

6161
// State can be stored/recovered using the framework's session or a
@@ -87,8 +87,9 @@ public static RecipientViewRequest MakeRecipientViewRequest(string signerEmail,
8787
// can be changed/spoofed very easily.
8888
viewRequest.ReturnUrl = returnUrl + "?state=123";
8989

90-
// How has your app authenticated the user? In addition to your app's
91-
// authentication, you can include authenticate steps from DocuSign.
90+
// How does your app verify the user's authentication? Additionally,
91+
// you can integrate authentication steps from DocuSign alongside
92+
// your app's own authentication process.
9293
// Eg, SMS authentication
9394
viewRequest.AuthenticationMethod = "none";
9495

launcher-csharp/eSignature/Views/FocusedView/Embed.cshtml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,23 @@
33
<h2>Embedded document using focused view</h2>
44
<br />
55

6+
<!--//ds-snippet-start:eSign44Step6-->
67
<div id="agreement" class="docusign-agreement"></div>
78

89
<p><a href="/">@Html.Raw(ViewBag.SupportingTexts.ContinueButton)</a></p>
910

10-
@Html.Raw("<script src='https://docucdn-a.akamaihd.net/demo/1ds/libs/@embedded-js/core/latest/dist/bundle.js'></script>")
11+
@{
12+
//ds-snippet-start:eSign44Step6
13+
}
14+
15+
@Html.Raw("<script src='https://js.docusign.com/bundle.js'></script>")
1116

1217
<script>
13-
window.DocuSign.loadDocuSign('{INTEGRATION_KEY}')
18+
window.DocuSign.loadDocuSign('@ViewBag.IntegrationKey')
1419
.then((docusign) => {
1520
const signing = docusign.signing({
1621
url: '@ViewBag.Url',
1722
displayFormat: 'focused',
18-
//ds-snippet-start:eSign44Step6
1923
style: {
2024
/** High-level variables that mirror our existing branding APIs. Reusing the branding name here for familiarity. */
2125
branding: {
@@ -33,7 +37,6 @@
3337
position: 'bottom-center'
3438
}
3539
}
36-
//ds-snippet-end:eSign44Step6
3740
});
3841
3942
signing.on('ready', (event) => {
@@ -74,4 +77,8 @@
7477
<div class="docusign-agreement" id="docusign"></div>
7578
<script src="script.js"></script>
7679
</body>
77-
</html>
80+
</html>
81+
82+
@{
83+
//ds-snippet-end:eSign44Step6
84+
}

0 commit comments

Comments
 (0)