mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
20 lines
486 B
C#
20 lines
486 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.AspNetCore.Authorization;
|
|||
|
|
|||
|
namespace BTCPayServer.Security
|
|||
|
{
|
|||
|
public class PolicyRequirement : IAuthorizationRequirement
|
|||
|
{
|
|||
|
public PolicyRequirement(string policy)
|
|||
|
{
|
|||
|
if (policy == null)
|
|||
|
throw new ArgumentNullException(nameof(policy));
|
|||
|
Policy = policy;
|
|||
|
}
|
|||
|
public string Policy { get; }
|
|||
|
}
|
|||
|
}
|