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