<PackageReference Include="Microsoft.Identity.Client" Version="4.84.0" />

Microsoft.Identity.Client.PlatformsCommon.Shared.InMemoryPartitionedAppTokenCacheAccessor

Stores tokens for an application. Partitions the access token collection by a key of client ID with tenant ID. App metadata collection is not partitioned. Refresh token, ID token, and account related methods are no-op.
protected readonly ILoggerAdapter _logger

public int EntryCount { get; }

public InMemoryPartitionedAppTokenCacheAccessor(ILoggerAdapter logger, CacheOptions tokenCacheAccessorOptions)

public static void ClearStaticCacheForTest()

public virtual void Clear(ILoggerAdapter requestlogger = null)

This method is not supported for the app token cache because there are no user accounts in a client credential flow.

This method is not supported for the app token cache because there are no ID tokens in a client credential flow.

This method is not supported for the app token cache because there are no refresh tokens in a client credential flow.

This method is not supported for the app token cache because there are no user accounts in a client credential flow.

public virtual List<MsalAccessTokenCacheItem> GetAllAccessTokens(string partitionKey = null, ILoggerAdapter requestlogger = null)

WARNING: if partitionKey = null, this API is slow as it loads all tokens, not just from 1 partition. It should only support external token caching, in the hope that the external token cache is partitioned.

public virtual List<MsalAccountCacheItem> GetAllAccounts(string partitionKey = null, ILoggerAdapter requestlogger = null)

public virtual List<MsalIdTokenCacheItem> GetAllIdTokens(string partitionKey = null, ILoggerAdapter requestlogger = null)

public virtual List<MsalRefreshTokenCacheItem> GetAllRefreshTokens(string partitionKey = null, ILoggerAdapter requestlogger = null)

This method is not supported for the app token cache because there are no ID tokens in a client credential flow.

public virtual bool HasAccessOrRefreshTokens()

This method is not supported for the app token cache because there are no user accounts in a client credential flow.

This method is not supported for the app token cache because there are no ID tokens in a client credential flow.

This method is not supported for the app token cache because there are no refresh tokens in a client credential flow.

public void SetiOSKeychainSecurityGroup(string keychainSecurityGroup)