btcpayserver/BTCPayServer/Models/Authorization/AuthorizeViewModel.cs
Andrew Camilleri 3366c86b16 Authorize granular permissions (#1057)
* granular scope permissions for api

* final fixes and styling

* prettify code

* fix missing policy
2019-09-29 16:23:31 +09:00

16 lines
449 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace BTCPayServer.Models.Authorization
{
public class AuthorizeViewModel
{
[Display(Name = "Application")] public string ApplicationName { get; set; }
[BindNever] public string RequestId { get; set; }
[Display(Name = "Scope")] public IEnumerable<string> Scope { get; set; }
}
}