<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview" />

Microsoft.Identity.Client.ClientApplicationBase

public IAppConfig AppConfig { get; }

Details on the configuration of the ClientApplication for debugging purposes.

public string Authority { get; }

public ITokenCache UserTokenCache { get; }

public AcquireTokenSilentParameterBuilder AcquireTokenSilent(IEnumerable<string> scopes, string loginHint)

public Task<IAccount> GetAccountAsync(string accountId, CancellationToken cancellationToken = default)

Get the IAccount by its identifier among the accounts available in the token cache.

public Task<IAccount> GetAccountAsync(string accountId)

public Task<IEnumerable<IAccount>> GetAccountsAsync(CancellationToken cancellationToken = default)

Returns all the available IAccountaccounts in the user token cache for the application.

public Task<IEnumerable<IAccount>> GetAccountsAsync(string userFlow)

public Task<IEnumerable<IAccount>> GetAccountsAsync(string userFlow, CancellationToken cancellationToken = default)

Get the IAccount collection by its identifier among the accounts available in the token cache, based on the user flow. This is for Azure AD B2C scenarios.

public Task RemoveAsync(IAccount account)

Removes all tokens in the cache for the specified account.

public Task RemoveAsync(IAccount account, CancellationToken cancellationToken = default)

Removes all tokens in the cache for the specified account.