Show / Hide Table of Contents

Class AccessTokenStore

Inheritance
object
AccessTokenStore
Implements
IAccessTokenStore
ISupportRefreshToken
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Account.Pro.Public.MauiBlazor.OAuth
Assembly: Volo.Abp.Account.Pro.Public.MauiBlazor.dll
Syntax
public class AccessTokenStore : IAccessTokenStore, ISupportRefreshToken, ITransientDependency

Constructors

AccessTokenStore(IHttpClientFactory, IOptions<OAuthConfigOptions>, ICurrentTenant, IOAuthSecureStorage)

Declaration
public AccessTokenStore(IHttpClientFactory httpClientFactory, IOptions<OAuthConfigOptions> oAuthConfigOptions, ICurrentTenant currentTenant, IOAuthSecureStorage secureStorage)
Parameters
Type Name Description
IHttpClientFactory httpClientFactory
IOptions<OAuthConfigOptions> oAuthConfigOptions
ICurrentTenant currentTenant
IOAuthSecureStorage secureStorage

Fields

AccessTokenKey

Declaration
protected const string AccessTokenKey = "access_token"
Field Value
Type Description
string

ExpiredTimeKey

Declaration
protected const string ExpiredTimeKey = "expired_time"
Field Value
Type Description
string

HttpClientName

Declaration
public const string HttpClientName = "AccessTokenStoreClient"
Field Value
Type Description
string

RefreshTokenKey

Declaration
protected const string RefreshTokenKey = "refresh_token"
Field Value
Type Description
string

Properties

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

HttpClientFactory

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

OAuthConfigOptions

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

SecureStorage

Declaration
protected IOAuthSecureStorage SecureStorage { get; }
Property Value
Type Description
IOAuthSecureStorage

Methods

GetAccessTokenAsync()

Declaration
public Task<string> GetAccessTokenAsync()
Returns
Type Description
Task<string>

GetAccessTokenExpiredTimeAsync()

Declaration
public Task<DateTime?> GetAccessTokenExpiredTimeAsync()
Returns
Type Description
Task<DateTime?>

GetRefreshTokenAsync()

Declaration
public Task<string> GetRefreshTokenAsync()
Returns
Type Description
Task<string>

SetAccessTokenAsync(string)

Declaration
public Task SetAccessTokenAsync(string accessToken)
Parameters
Type Name Description
string accessToken
Returns
Type Description
Task

SetRefreshTokenAsync(string, string)

Declaration
public Task SetRefreshTokenAsync(string refreshToken, string accessTokenExpiredTime)
Parameters
Type Name Description
string refreshToken
string accessTokenExpiredTime
Returns
Type Description
Task

TryRefreshAccessTokenAsync()

Declaration
protected virtual Task TryRefreshAccessTokenAsync()
Returns
Type Description
Task

Implements

IAccessTokenStore
ISupportRefreshToken
ITransientDependency

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