public Task RemoveClaimsAsync(User user, IEnumerable <Claim> claims, CancellationToken cancellationToken) { var claimsList = new List <BaseClaim>(); foreach (var claim in claims) { var userClaim = new BaseClaim { ClaimType = claim.Type, ClaimValue = claim.Value, ClaimValueType = claim.ValueType, Issuer = claim.Issuer }; claimsList.Add(userClaim); } return(Task.CompletedTask); }
public static Claim ToClaim(this BaseClaim baseClaim) { return(new Claim(baseClaim.ClaimType, baseClaim.ClaimValue, baseClaim.ClaimValueType, baseClaim.Issuer)); }