14 references to AuthenticationState
BasicTestApp (1)
AuthTest\ServerAuthenticationStateProvider.cs (1)
38return new AuthenticationState(new ClaimsPrincipal(identity));
Microsoft.AspNetCore.Components.Authorization.Tests (7)
AuthorizeRouteViewTest.cs (3)
26new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity()))); 179_authenticationStateProvider.CurrentAuthStateTask = Task.FromResult(new AuthenticationState( 229authStateTcs.SetResult(new AuthenticationState(
AuthorizeViewTest.cs (3)
273authTcs.SetResult(new AuthenticationState(new ClaimsPrincipal())); 524= Task.FromResult(new AuthenticationState(new ClaimsPrincipal())); 561=> Task.FromResult(new AuthenticationState(
CascadingAuthenticationStateTest.cs (1)
190=> new AuthenticationState(new ClaimsPrincipal(username == null
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
85var authenticationState = new AuthenticationState(httpContext.User);
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitHost.cs (1)
603var authenticationState = new AuthenticationState(user);
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
105var anonymousState = new AuthenticationState(anonymousUser);
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (1)
221var authenticationState = new AuthenticationState(new ClaimsPrincipal(identity));
Circuits\ServerAuthenticationStateProviderTest.cs (2)
27var expectedAuthenticationState1 = new AuthenticationState(user); 36var expectedAuthenticationState2 = new AuthenticationState(user);