mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Authorize granular permissions (#1057)
* granular scope permissions for api * final fixes and styling * prettify code * fix missing policy
This commit is contained in:
committed by
Nicolas Dorier
parent
c7e3241a85
commit
3366c86b16
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||
|
||||
namespace BTCPayServer.Models.Authorization
|
||||
@@ -9,6 +10,6 @@ namespace BTCPayServer.Models.Authorization
|
||||
|
||||
[BindNever] public string RequestId { get; set; }
|
||||
|
||||
[Display(Name = "Scope")] public string Scope { get; set; }
|
||||
[Display(Name = "Scope")] public IEnumerable<string> Scope { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user