using Microsoft.AspNetCore.Authorization;
namespace Kyoo.Authentication
{
///
/// The requirement of Kyoo's authentication policies.
///
public class AuthRequirement : IAuthorizationRequirement
{
///
/// The name of the permission
///
public string Permission { get; }
///
/// Create a new for the given permission.
///
/// The permission needed
public AuthRequirement(string permission)
{
Permission = permission;
}
}
}