6 references to Claims
Microsoft.AspNetCore.Identity.InMemory.Test (6)
InMemoryUserStore.cs (6)
35
var claims = user.
Claims
.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList();
43
user.
Claims
.Add(new PocoUserClaim { ClaimType = claim.Type, ClaimValue = claim.Value, UserId = user.Id });
50
var matchedClaims = user.
Claims
.Where(uc => uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToList();
64
user.
Claims
.FirstOrDefault(
68
user.
Claims
.Remove(entity);
339
where user.
Claims
.Where(x => x.ClaimType == claim.Type && x.ClaimValue == claim.Value).FirstOrDefault() != null