Skip to content

Commit

Permalink
DEVDOCS-12874 revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
meihDS committed Nov 30, 2023
1 parent 0d1681c commit 51a3a60
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions launcher-csharp/Connect/Views/ValidateWebhookMessage/Con001.cshtml
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>

0 comments on commit 51a3a60

Please sign in to comment.