ClientApplicationBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract class containing common API methods and properties. Both PublicClientApplication and ConfidentialClientApplication extend this class. For details see https://aka.ms/msal-net-client-applications
public abstract class ClientApplicationBase : Microsoft.Identity.Client.ApplicationBase, Microsoft.Identity.Client.IClientApplicationBase
type ClientApplicationBase = class
inherit ApplicationBase
interface IClientApplicationBase
interface IApplicationBase
Public MustInherit Class ClientApplicationBase
Inherits ApplicationBase
Implements IClientApplicationBase
- Inheritance
- Derived
- Implements
Properties
AppConfig |
Details on the configuration of the ClientApplication for debugging purposes. |
Authority |
Gets the URL of the authority, or security token service (STS) from which MSAL.NET will acquire security tokens
The return value of this property is either the value provided by the developer in the constructor of the application, or otherwise
the value of the Microsoft.Identity.Client.ApplicationBase.DefaultAuthority static member (that is |
UserTokenCache |
User token cache. It holds access tokens, id tokens and refresh tokens for accounts. It's used
and updated silently if needed when calling AcquireTokenSilent(IEnumerable<String>, IAccount)
or one of the overrides of AcquireTokenSilent(IEnumerable<String>, IAccount).
It is updated by each AcquireTokenXXX method, with the exception of |
Methods
AcquireTokenSilent(IEnumerable<String>, IAccount) |
[V3 API] Attempts to acquire an access token for the |
AcquireTokenSilent(IEnumerable<String>, String) |
[V3 API] Attempts to acquire an access token for the IAccount
having the Username match the given |
GetAccountAsync(String, CancellationToken) |
Get the IAccount by its identifier among the accounts available in the token cache. |
GetAccountAsync(String) |
Get the IAccount by its identifier among the accounts available in the token cache. |
GetAccountsAsync() |
Returns all the available accounts in the user token cache for the application. |
GetAccountsAsync(CancellationToken) |
Returns all the available accounts in the user token cache for the application. |
GetAccountsAsync(String, CancellationToken) |
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. |
GetAccountsAsync(String) |
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. |
RemoveAsync(IAccount, CancellationToken) |
Removes all tokens in the cache for the specified account. |
RemoveAsync(IAccount) |
Removes all tokens in the cache for the specified account. |