btcpayserver/BTCPayServer/Security/PolicyRequirement.cs

16 lines
358 B
C#

using System;
using Microsoft.AspNetCore.Authorization;
namespace BTCPayServer.Security
{
public class PolicyRequirement : IAuthorizationRequirement
{
public PolicyRequirement(string policy)
{
ArgumentNullException.ThrowIfNull(policy);
Policy = policy;
}
public string Policy { get; }
}
}