mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-21 23:14:25 +01:00
Adapt cookie auth to work with same API permission system (#4595)
* Adapt cookie auth to work with same API permission system * Handle unscoped store permission case * Do not consider Unscoped as a valid policy * Add tests * Refactor permissions scopes --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de> Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace BTCPayServer.Models.AccountViewModels
|
||||
{
|
||||
public class CheatPermissionsViewModel
|
||||
{
|
||||
public string StoreId { get; internal set; }
|
||||
public (string, AuthorizationResult Result)[] Permissions { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user