44 references to Type
Microsoft.AspNetCore.Antiforgery (9)
Internal\DefaultClaimUidExtractor.cs (9)
48claim => string.Equals("sub", claim.Type, StringComparison.Ordinal)); 53subClaim.Type, 60claim => string.Equals(ClaimTypes.NameIdentifier, claim.Type, StringComparison.Ordinal)); 65nameIdentifierClaim.Type, 72claim => string.Equals(ClaimTypes.Upn, claim.Type, StringComparison.Ordinal)); 77upnClaim.Type, 100allClaims.Sort((a, b) => string.Compare(a.Type, b.Type, StringComparison.Ordinal)); 106identifierParameters.Add(claim.Type);
Microsoft.AspNetCore.Authentication (1)
TicketSerializer.cs (1)
137WriteWithDefault(writer, claim.Type, claim.Subject?.NameClaimType ?? ClaimsIdentity.DefaultNameClaimType);
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
167var claim = ticket.Principal.Claims.FirstOrDefault(c => c.Type.Equals(SessionIdClaim));
Microsoft.AspNetCore.Authentication.OAuth (1)
MapAllClaimsAction.cs (1)
31var duplicate = identity.FindFirst(c => string.Equals(c.Type, pair.Name, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
UniqueJsonKeyClaimAction.cs (1)
39var claim = identity.FindFirst(c => string.Equals(c.Type, ClaimType, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.Authorization (2)
ClaimsAuthorizationRequirement.cs (2)
60if (string.Equals(claim.Type, requirement.ClaimType, StringComparison.OrdinalIgnoreCase)) 71if (string.Equals(claim.Type, requirement.ClaimType, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.Authorization (2)
ClaimData.cs (2)
28/// <see cref="Claim.Type"/> and <see cref="Claim.Value"/> into their corresponding properties. 32: this(claim.Type, claim.Value)
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
313return string.Equals(current.Type, incoming.Type, StringComparison.Ordinal)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (10)
RoleStore.cs (2)
373var claims = await RoleClaims.Where(rc => rc.RoleId.Equals(role.Id) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken); 394=> new TRoleClaim { RoleId = role.Id, ClaimType = claim.Type, ClaimValue = claim.Value };
UserOnlyStore.cs (4)
376var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 380matchedClaim.ClaimType = newClaim.Type; 398var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 518&& userclaims.ClaimType == claim.Type
UserStore.cs (4)
493var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 497matchedClaim.ClaimType = newClaim.Type; 515var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 635&& userclaims.ClaimType == claim.Type
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
159if (info.Principal!.HasClaim(c => c.Type == ClaimTypes.Email))
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
159if (info.Principal.HasClaim(c => c.Type == ClaimTypes.Email))
Microsoft.Extensions.Identity.Stores (3)
IdentityRoleClaim.cs (1)
50ClaimType = other?.Type;
IdentityUserClaim.cs (1)
50ClaimType = claim.Type;
RoleStoreBase.cs (1)
247=> new TRoleClaim { RoleId = role.Id, ClaimType = claim.Type, ClaimValue = claim.Value };
System.Security.Claims (10)
System\Security\Claims\Claim.cs (1)
514/// The returned string contains the values of the <see cref="Type"/> and <see cref="Value"/> properties.
System\Security\Claims\ClaimsIdentity.cs (9)
117/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 118/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 130/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 131/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 144/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 145/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 635if (string.Equals(claim.Type, type, _stringComparison)) 679if (string.Equals(claim.Type, type, _stringComparison)) 726&& string.Equals(claim.Type, type, _stringComparison)