Class WebAssemblyAuthenticationStateProvider<TRemoteAuthenticationState, TAccount, TProviderOptions>
Inheritance
WebAssemblyAuthenticationStateProvider<TRemoteAuthenticationState, TAccount, TProviderOptions>
Assembly: Volo.Abp.AspNetCore.Components.WebAssembly.dll
Syntax
public class WebAssemblyAuthenticationStateProvider<TRemoteAuthenticationState, TAccount, TProviderOptions> : RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions> where TRemoteAuthenticationState : RemoteAuthenticationState where TAccount : RemoteUserAccount where TProviderOptions : new()
Type Parameters
Name |
Description |
TRemoteAuthenticationState |
|
TAccount |
|
TProviderOptions |
|
Constructors
WebAssemblyAuthenticationStateProvider(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>?, WebAssemblyCachedApplicationConfigurationClient, IOptions<WebAssemblyAuthenticationStateProviderOptions>, IHttpClientFactory)
Declaration
public WebAssemblyAuthenticationStateProvider(IJSRuntime jsRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>> options, NavigationManager navigation, AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>? logger, WebAssemblyCachedApplicationConfigurationClient webAssemblyCachedApplicationConfigurationClient, IOptions<WebAssemblyAuthenticationStateProviderOptions> webAssemblyAuthenticationStateProviderOptions, IHttpClientFactory httpClientFactory)
Parameters
Fields
AccessTokens
Declaration
protected static readonly ConcurrentDictionary<string, string> AccessTokens
Field Value
Properties
HttpClientFactory
Declaration
protected IHttpClientFactory HttpClientFactory { get; }
Property Value
Logger
Declaration
protected ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>> Logger { get; }
Property Value
Type |
Description |
ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>> |
|
WebAssemblyAuthenticationStateProviderOptions
Declaration
protected IOptions<WebAssemblyAuthenticationStateProviderOptions> WebAssemblyAuthenticationStateProviderOptions { get; }
Property Value
WebAssemblyCachedApplicationConfigurationClient
Declaration
protected WebAssemblyCachedApplicationConfigurationClient WebAssemblyCachedApplicationConfigurationClient { get; }
Property Value
Methods
FindAccessTokenAsync()
Declaration
protected virtual Task<string?> FindAccessTokenAsync()
Returns
GetAuthenticatedUser()
Declaration
protected override ValueTask<ClaimsPrincipal> GetAuthenticatedUser()
Returns
GetAuthenticationStateAsync()
Declaration
public override Task<AuthenticationState> GetAuthenticationStateAsync()
Returns
TryRevokeOldAccessTokensAsync()
Declaration
protected virtual Task TryRevokeOldAccessTokensAsync()
Returns
Extension Methods