Skip to content

Commit 51a3a60

Browse files
committed
DEVDOCS-12874 revert previous commit
1 parent 0d1681c commit 51a3a60

File tree

1 file changed

+53
-0
lines changed
  • launcher-csharp/Connect/Views/ValidateWebhookMessage

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
@{
2+
int formNumber = 0;
3+
int hmacInputNumber = 0;
4+
int jsonInputNumber = 1;
5+
}
6+
7+
<h4>@Html.Raw(ViewBag.CodeExampleText.ExampleName)</h4>
8+
<p>
9+
@Html.Raw(ViewBag.CodeExampleText.ExampleDescription)
10+
</p>
11+
12+
<partial name="../../../Views/Shared/LinkToMethodView" model="ViewBag.CodeExampleText" />
13+
<p>
14+
@Html.Raw(
15+
@String.Format(
16+
ViewBag.SupportingTexts.ViewSourceFile,
17+
"<a target='_blank' href=" + @ViewBag.source + ">HMACValidation.cs</a>"
18+
)
19+
)
20+
</p>
21+
22+
<p>
23+
<b>Prerequisites:</b> See <a href="https://developers.docusign.com/platform/webhooks/connect/validate/">How to validate an HMAC signature</a>.
24+
</p>
25+
26+
<form class="eg" action="" method="post" data-busy="form">
27+
<div class="form-group" style="display: flex;">
28+
<label for="hmacSecret" style="width: 50%;">
29+
@Html.Raw(ViewBag.CodeExampleText.Forms[formNumber].Inputs[hmacInputNumber].InputName)
30+
</label>
31+
32+
<input type="text"
33+
class="form-control"
34+
id="hmacSecret"
35+
name="hmacSecret"
36+
required/>
37+
</div>
38+
<div class="form-group">
39+
<label for="jsonPayload">
40+
@Html.Raw(ViewBag.CodeExampleText.Forms[formNumber].Inputs[jsonInputNumber].InputName)
41+
</label>
42+
43+
<textarea
44+
rows="6"
45+
class="form-control"
46+
id="jsonPayload"
47+
name="jsonPayload"
48+
required ></textarea>
49+
</div>
50+
<input type="hidden" name="_csrf" value="@ViewBag.csrfToken">
51+
<button type="submit" class="btn btn-primary">@Html.Raw(ViewBag.SupportingTexts.SubmitButton)</button>
52+
</form>
53+

0 commit comments

Comments
 (0)