mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Rename user param to userId in API key redirect This way it is clearer what to expect and it also make the parameteer easier to consume. * Post redirect: Allow form url and prettify page - Form URL as alternative to controller/action for external URLs - Making it look nice and add explanation for non-JS case * APIKeys: Minor view updates fix * APIKeys: Use POST redirect for confirmation fix * UI: Minor update to confirm view Tidies it up and adapts to the newly added ConfirmAPIKeys view. * APIKeys: Update delete view Structures the information in title and description better. * APIKeys: Distinguish authorize and confirm (reuse) * Upgrade ChromeDriver * Test fixes * Clean up PostRedirect view By adding missing forgery token * Re-add tests for callback post values * Rename key param to apiKey in API key redirect * Update BTCPayServer/wwwroot/swagger/v1/swagger.template.authorization.json Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Use DEBUG conditional for postredirect-callback-test route * Remove unnecessary ChromeDriver references * Add debug flag * Remove debug flags Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
41 lines
1.9 KiB
Text
41 lines
1.9 KiB
Text
@model BTCPayServer.Controllers.ManageController.AuthorizeApiKeysViewModel
|
|
|
|
@{
|
|
var displayName = Model.ApplicationName ?? Model.ApplicationIdentifier;
|
|
ViewData["Title"] = $"Are you sure about exposing your API Key to {displayName}?";
|
|
Layout = null;
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<partial name="Header" />
|
|
</head>
|
|
<body class="bg-light">
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title w-100 text-center">@ViewData["Title"]</h4>
|
|
</div>
|
|
|
|
<div class="modal-body text-center">
|
|
You've previously generated the API Key <code>@Model.ApiKey</code> specifically for
|
|
<strong>@displayName</strong> with the URL <code>@Model.RedirectUrl</code>.
|
|
</div>
|
|
|
|
<form method="post" class="modal-footer justify-content-center" asp-controller="Manage" asp-action="AuthorizeAPIKey">
|
|
<input type="hidden" asp-for="ApplicationName" value="@Model.ApplicationName"/>
|
|
<input type="hidden" asp-for="ApplicationIdentifier" value="@Model.ApplicationIdentifier"/>
|
|
<input type="hidden" asp-for="ApiKey" value="@Model.ApiKey"/>
|
|
<input type="hidden" asp-for="Strict" value="@Model.Strict"/>
|
|
<input type="hidden" asp-for="RedirectUrl" value="@Model.RedirectUrl"/>
|
|
<input type="hidden" asp-for="Permissions" value="@Model.Permissions"/>
|
|
<input type="hidden" asp-for="SelectiveStores" value="@Model.SelectiveStores"/>
|
|
|
|
<button type="submit" class="btn btn-primary w-25 mx-2" id="continue" name="command" value="Confirm">Confirm</button>
|
|
<button type="submit" class="btn btn-secondary w-25 mx-2" onclick="history.back(); return false;">Go back</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|