3 types derived from AuthenticationStateProvider
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\ServerAuthenticationStateProvider.cs (1)
11public class ServerAuthenticationStateProvider : AuthenticationStateProvider, IHostEnvironmentAuthenticationStateProvider
Microsoft.AspNetCore.Components.WebAssembly.Authentication (2)
Services\DeserializedAuthenticationStateProvider.cs (1)
12internal sealed class DeserializedAuthenticationStateProvider : AuthenticationStateProvider
Services\RemoteAuthenticationService.cs (1)
25AuthenticationStateProvider,
28 references to AuthenticationStateProvider
Microsoft.AspNetCore.Components.Authorization (9)
_generated\0\CascadingAuthenticationState_razor.g.cs (1)
115AuthenticationStateProvider
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.Endpoints (4)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
72services.TryAddScoped<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
DependencyInjection\ServerAuthenticationStateProvider.cs (1)
9/// An <see cref="AuthenticationStateProvider"/> intended for use in server-side Blazor.
Rendering\EndpointHtmlRenderer.cs (2)
97var authenticationStateProvider = httpContext.RequestServices.GetService<AuthenticationStateProvider>();
Microsoft.AspNetCore.Components.Server (3)
Circuits\CircuitHost.cs (1)
635var 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)
112services.TryAddScoped<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
Microsoft.AspNetCore.Components.WebAssembly.Authentication (9)
Options\AuthenticationStateDeserializationOptions.cs (1)
21/// client's <see cref="AuthenticationStateProvider"/>.
RemoteAuthenticatorViewCore.cs (1)
107[Inject] internal AuthenticationStateProvider AuthenticationProvider { get; set; } = default!;
Services\AuthorizationMessageHandler.cs (2)
40if (_provider is AuthenticationStateProvider authStateProvider) 129if (_provider is AuthenticationStateProvider authStateProvider)
WebAssemblyAuthenticationServiceCollectionExtensions.cs (5)
22/// Adds an <see cref="AuthenticationStateProvider"/> where the <see cref="AuthenticationState"/> is deserialized from the server 32services.TryAddScoped<AuthenticationStateProvider, DeserializedAuthenticationStateProvider>(); 61services.TryAddScoped<AuthenticationStateProvider, RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>(); 69return (IAccessTokenProvider)sp.GetRequiredService<AuthenticationStateProvider>(); 83services.TryAddScoped(static sp => (IRemoteAuthenticationService<TRemoteAuthenticationState>)sp.GetRequiredService<AuthenticationStateProvider>());
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)
54/// Serializes the <see cref="AuthenticationState"/> returned by the server-side <see cref="AuthenticationStateProvider"/> using <see cref="PersistentComponentState"/> 55/// for use by interactive WebAssembly components via a deserializing client-side <see cref="AuthenticationStateProvider"/> which can be added by calling