-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVDOCS-12874 revert previous commit
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
launcher-csharp/Connect/Views/ValidateWebhookMessage/Con001.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@{ | ||
int formNumber = 0; | ||
int hmacInputNumber = 0; | ||
int jsonInputNumber = 1; | ||
} | ||
|
||
<h4>@Html.Raw(ViewBag.CodeExampleText.ExampleName)</h4> | ||
<p> | ||
@Html.Raw(ViewBag.CodeExampleText.ExampleDescription) | ||
</p> | ||
|
||
<partial name="../../../Views/Shared/LinkToMethodView" model="ViewBag.CodeExampleText" /> | ||
<p> | ||
@Html.Raw( | ||
@String.Format( | ||
ViewBag.SupportingTexts.ViewSourceFile, | ||
"<a target='_blank' href=" + @ViewBag.source + ">HMACValidation.cs</a>" | ||
) | ||
) | ||
</p> | ||
|
||
<p> | ||
<b>Prerequisites:</b> See <a href="https://developers.docusign.com/platform/webhooks/connect/validate/">How to validate an HMAC signature</a>. | ||
</p> | ||
|
||
<form class="eg" action="" method="post" data-busy="form"> | ||
<div class="form-group" style="display: flex;"> | ||
<label for="hmacSecret" style="width: 50%;"> | ||
@Html.Raw(ViewBag.CodeExampleText.Forms[formNumber].Inputs[hmacInputNumber].InputName) | ||
</label> | ||
|
||
<input type="text" | ||
class="form-control" | ||
id="hmacSecret" | ||
name="hmacSecret" | ||
required/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="jsonPayload"> | ||
@Html.Raw(ViewBag.CodeExampleText.Forms[formNumber].Inputs[jsonInputNumber].InputName) | ||
</label> | ||
|
||
<textarea | ||
rows="6" | ||
class="form-control" | ||
id="jsonPayload" | ||
name="jsonPayload" | ||
required ></textarea> | ||
</div> | ||
<input type="hidden" name="_csrf" value="@ViewBag.csrfToken"> | ||
<button type="submit" class="btn btn-primary">@Html.Raw(ViewBag.SupportingTexts.SubmitButton)</button> | ||
</form> | ||
|