@using BTCPayServer.Client @using BTCPayServer.Controllers @using BTCPayServer.Security.GreenField @model BTCPayServer.Controllers.ManageController.AuthorizeApiKeysViewModel @{ Layout = "_Layout"; ViewData["Title"] = $"Authorize {(Model.ApplicationName ?? "Application")}"; var permissions = Permission.ToPermissions(Model.Permissions.Split(';')); var hasStorePermission = permissions.Any(p => p.Policy == Policies.CanModifyStoreSettings); }

Authorization Request


@(Model.ApplicationName ?? "An application") is requesting access to your account.

@if (!permissions.Any()) {

There are no associated permissions to the API key being requested here. The application cannot do anything with your BTCPay account other than validating your account exists.

} @for (int i = 0; i < Model.PermissionValues.Count; i++) {
@if (Model.Strict) { } else { } @if (Model.PermissionValues[i].Forbidden) {
This permission is not available for your account. } @Model.PermissionValues[i].Description
} @if (hasStorePermission) { @if (Model.StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.AllStores) {
@if (Model.Strict) { } else { } @if (Model.SelectiveStores) { }
@Model.StoreManagementPermission.Description
} else if (Model.StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.Specific) {
@Model.StoreManagementSelectivePermission.Title
@Model.StoreManagementSelectivePermission.Description
@if (!Model.Stores.Any()) {
You currently have no stores configured.
} @for (var index = 0; index < Model.SpecificStores.Count; index++) {
@if (Model.SpecificStores[index] == null) { } else { var store = Model.Stores.SingleOrDefault(data => data.Id == Model.SpecificStores[index]); }
} @if (Model.SpecificStores.Count < Model.Stores.Length) {
} } }