예제 #1
0
        public IIdTypeBuilder AddClaim(IdType idType, string value)
        {
            claims.Add(new Claim(idType.ToClaimTypes(), value));

            return(this);
        }
 public ClaimRequirementAttribute(IdType claimType, string claimValue) : base(typeof(ClaimRequirementFilter))
 {
     Arguments = new object[] { new Claim(claimType.ToClaimTypes(), claimValue) };
 }
예제 #3
0
        public IIdTypeBuilder <TUserModel> AddClaim(IdType idType, Func <TUserModel, string> value)
        {
            claims.Add(new Claim(idType.ToClaimTypes(), value(user)));

            return(this);
        }