1 write to User
Microsoft.AspNetCore.Components.Authorization (1)
AuthenticationState.cs (1)
20
User
= user;
10 references to User
Aspire.Dashboard (2)
Components\Controls\UserProfile.razor.cs (1)
46
var claimsIdentity = authState.
User
.Identity as ClaimsIdentity;
Components\Pages\Login.razor.cs (1)
60
if (state.
User
.Identity?.IsAuthenticated ?? false)
Microsoft.AspNetCore.Components.Authorization (2)
AuthenticationStateData.cs (1)
14
/// The client-readable claims that describe the <see cref="AuthenticationState.
User
"/>.
AuthorizeViewCore.cs (1)
91
isAuthorized = await IsAuthorizedAsync(currentAuthenticationState.
User
);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
64
if (authenticationState.
User
.Identity?.IsAuthenticated == true)
Microsoft.AspNetCore.Components.WebAssembly.Server (5)
AuthenticationStateSerializationOptions.cs (5)
40
if (authenticationState.
User
.Identity?.IsAuthenticated ?? false)
44
if (authenticationState.
User
.Identities.FirstOrDefault() is { } identity)
52
foreach (var claim in authenticationState.
User
.Claims)
59
if (authenticationState.
User
.FindFirst(data.NameClaimType) is { } nameClaim)
64
foreach (var roleClaim in authenticationState.
User
.FindAll(data.RoleClaimType))