using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudBuilder.Core.Authorization
{
    public class PermissionRequirement : IAuthorizationRequirement
    {

        //public List<UserPermissionDisplayData> UserPermissionDisplayDatas { get; set; }

        ///// <summary>
        ///// 认证授权类型
        ///// </summary>
        //public string ClaimType { internal get; set; }

        ///// <summary>
        ///// 发行人
        ///// </summary>
        //public string Issuer { get; set; }
        ///// <summary>
        ///// 订阅人
        ///// </summary>
        //public string Audience { get; set; }
        ///// <summary>
        ///// 过期时间
        ///// </summary>
        //public TimeSpan Expiration { get; set; }
        ///// <summary>
        ///// 签名验证
        ///// </summary>
        //public SigningCredentials SigningCredentials { get; set; }
        public PermissionRequirement()
        {
        }
        //public PermissionRequirement(List<UserPermissionDisplayData> permissions)
        //{
        //    //ClaimType = claimType;
        //    UserPermissionDisplayDatas = permissions;
        //    //Issuer = issuer;
        //    //Audience = audience;
        //    //Expiration = expiration;
        //    //SigningCredentials = signingCredentials;
        //}
    }
}
