Implemented interface member:
2 overrides of Identity
System.Security.Claims (1)
System\Security\Claims\GenericPrincipal.cs (1)
65public override IIdentity Identity
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsPrincipal.cs (1)
44public override IIdentity Identity => _identity;
22 references to Identity
Aspire.Dashboard (4)
Authentication\AspirePolicyEvaluator.cs (1)
86return (context.User?.Identity?.IsAuthenticated ?? false)
Components\Controls\UserProfile.razor.cs (1)
46var claimsIdentity = authState.User.Identity as ClaimsIdentity;
Components\Pages\Login.razor.cs (1)
60if (state.User.Identity?.IsAuthenticated ?? false)
DashboardWebApplication.cs (1)
853var claimsIdentity = (ClaimsIdentity)context.Principal!.Identity!;
dotnet-user-jwts (1)
Helpers\JwtIssuer.cs (1)
82if (handler.ValidateToken(encodedToken, tokenValidationParameters, out _).Identity?.IsAuthenticated == true)
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationService.cs (2)
161if (principal.Identity == null) 165if (!principal.Identity.IsAuthenticated)
Microsoft.AspNetCore.Authentication.OAuth (1)
Events\OAuthCreatingTicketContext.cs (1)
101public ClaimsIdentity? Identity => Principal?.Identity as ClaimsIdentity;
Microsoft.AspNetCore.Authorization (2)
AuthorizationMetrics.cs (1)
45new("aspnetcore.user.is_authenticated", user.Identity?.IsAuthenticated ?? false)
DenyAnonymousAuthorizationRequirement.cs (1)
26user?.Identity == null ||
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyEvaluator.cs (1)
75return (context.User?.Identity?.IsAuthenticated ?? false)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
64if (authenticationState.User.Identity?.IsAuthenticated == true)
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionContext.cs (1)
280if (TransportType == HttpTransportType.LongPolling && User?.Identity is WindowsIdentity)
Internal\HttpConnectionDispatcher.cs (2)
633if (!(context.User.Identity is WindowsIdentity)) 683if (oldContext.User.Identity is WindowsIdentity windowsIdentity)
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
209shouldLog |= AddToList(elements, _userNameIndex, context.User?.Identity?.Name ?? "");
Microsoft.AspNetCore.Identity (3)
SignInManager.cs (3)
195if (!auth.Succeeded || auth.Principal?.Identity?.IsAuthenticated != true) 363if (principal == null || principal.Identity?.Name == null) 367var user = await UserManager.FindByIdAsync(principal.Identity.Name);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
100_username = httpContext.User?.Identity?.Name;
Microsoft.AspNetCore.OutputCaching (1)
Policies\DefaultPolicy.cs (1)
76if (!StringValues.IsNullOrEmpty(request.Headers.Authorization) || request.HttpContext.User?.Identity?.IsAuthenticated == true)
System.Security.Claims (1)
System\Security\Claims\ClaimsPrincipal.cs (1)
571if (identitiesCount == 1 && Identity is ClaimsIdentity claimsIdentity)