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) }; }
public IIdTypeBuilder <TUserModel> AddClaim(IdType idType, Func <TUserModel, string> value) { claims.Add(new Claim(idType.ToClaimTypes(), value(user))); return(this); }