3 types derived from AuthenticationStateProvider
BasicTestApp (1)
AuthTest\ServerAuthenticationStateProvider.cs (1)
13public class ServerAuthenticationStateProvider : AuthenticationStateProvider
Microsoft.AspNetCore.Components.Authorization.Tests (1)
TestAuthenticationStateProvider.cs (1)
6public class TestAuthenticationStateProvider : AuthenticationStateProvider
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\ServerAuthenticationStateProvider.cs (1)
11public class ServerAuthenticationStateProvider : AuthenticationStateProvider, IHostEnvironmentAuthenticationStateProvider
24 references to AuthenticationStateProvider
BasicTestApp (1)
Program.cs (1)
35builder.Services.AddSingleton<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
Microsoft.AspNetCore.Components.Authorization (8)
AuthenticationStateProvider.cs (1)
36/// A handler for the <see cref="AuthenticationStateProvider.AuthenticationStateChanged"/> event.
CascadingAuthenticationStateServiceCollectionExtensions.cs (4)
24var authenticationStateProvider = services.GetRequiredService<AuthenticationStateProvider>(); 34private readonly AuthenticationStateProvider _authenticationStateProvider; 36public AuthenticationStateCascadingValueSource(AuthenticationStateProvider authenticationStateProvider)
IHostEnvironmentAuthenticationStateProvider.cs (3)
8/// If this is implemented by the host's <see cref="AuthenticationStateProvider"/>, it will receive authentication state from the HttpContext. 10/// it will receive the <see cref="AuthenticationState"/> returned by <see cref="AuthenticationStateProvider.GetAuthenticationStateAsync"/> 15/// Supplies updated authentication state data to the <see cref="AuthenticationStateProvider"/>.
Microsoft.AspNetCore.Components.Authorization.Tests (5)
AuthorizeRouteViewTest.cs (1)
31serviceCollection.AddSingleton<AuthenticationStateProvider>(_authenticationStateProvider);
CascadingAuthenticationStateTest.cs (4)
29Assert.Contains($"There is no registered service of type '{typeof(AuthenticationStateProvider).FullName}'.", ex.Message); 41services.AddSingleton<AuthenticationStateProvider>(authStateProvider); 74services.AddSingleton<AuthenticationStateProvider>(authStateProvider); 126services.AddSingleton<AuthenticationStateProvider>(authStateProvider);
Microsoft.AspNetCore.Components.Endpoints (4)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
71services.TryAddScoped<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
DependencyInjection\ServerAuthenticationStateProvider.cs (1)
9/// An <see cref="AuthenticationStateProvider"/> intended for use in server-side Blazor.
Rendering\EndpointHtmlRenderer.cs (2)
82var authenticationStateProvider = httpContext.RequestServices.GetService<AuthenticationStateProvider>();
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitHost.cs (1)
600var authenticationStateProvider = Services.GetService<AuthenticationStateProvider>() as IHostEnvironmentAuthenticationStateProvider;
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
11/// A base class for <see cref="AuthenticationStateProvider"/> services that receive an
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
85services.TryAddScoped<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
AuthenticationStateSerializationOptions.cs (1)
11/// Provides options for configuring the JSON serialization of the <see cref="AuthenticationState"/> provided by the server's <see cref="AuthenticationStateProvider"/>
WebAssemblyRazorComponentsBuilderExtensions.cs (2)
32/// Serializes the <see cref="AuthenticationState"/> returned by the server-side <see cref="AuthenticationStateProvider"/> using <see cref="PersistentComponentState"/> 33/// for use by interactive WebAssembly components via a deserializing client-side <see cref="AuthenticationStateProvider"/> which can be added by calling