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