Show / Hide Table of Contents

Class WebAssemblyAuthenticationStateProvider<TRemoteAuthenticationState, TAccount, TProviderOptions>

Inheritance
object
WebAssemblyAuthenticationStateProvider<TRemoteAuthenticationState, TAccount, TProviderOptions>
Namespace: Volo.Abp.AspNetCore.Components.WebAssembly
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
Type Name Description
IJSRuntime jsRuntime
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>> options
NavigationManager navigation
AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory
ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>> logger
WebAssemblyCachedApplicationConfigurationClient webAssemblyCachedApplicationConfigurationClient
IOptions<WebAssemblyAuthenticationStateProviderOptions> webAssemblyAuthenticationStateProviderOptions
IHttpClientFactory httpClientFactory

Fields

AccessTokens

Declaration
protected static readonly ConcurrentDictionary<string, string> AccessTokens
Field Value
Type Description
ConcurrentDictionary<string, string>

Properties

HttpClientFactory

Declaration
protected IHttpClientFactory HttpClientFactory { get; }
Property Value
Type Description
IHttpClientFactory

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
Type Description
IOptions<WebAssemblyAuthenticationStateProviderOptions>

WebAssemblyCachedApplicationConfigurationClient

Declaration
protected WebAssemblyCachedApplicationConfigurationClient WebAssemblyCachedApplicationConfigurationClient { get; }
Property Value
Type Description
WebAssemblyCachedApplicationConfigurationClient

Methods

FindAccessTokenAsync()

Declaration
protected virtual Task<string?> FindAccessTokenAsync()
Returns
Type Description
Task<string>

GetAuthenticatedUser()

Declaration
protected override ValueTask<ClaimsPrincipal> GetAuthenticatedUser()
Returns
Type Description
ValueTask<ClaimsPrincipal>

GetAuthenticationStateAsync()

Declaration
public override Task<AuthenticationState> GetAuthenticationStateAsync()
Returns
Type Description
Task<AuthenticationState>

TryRevokeOldAccessTokensAsync()

Declaration
protected virtual Task TryRevokeOldAccessTokensAsync()
Returns
Type Description
Task

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform