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 |
ClientId |
Obsolete.
Gets the Client ID (also known as Application ID) of the application as registered in the application registration portal (https://aka.ms/msal-net-register-app) and as passed in the constructor of the application |
Component |
Obsolete.
Identifier of the component (libraries/SDK) consuming MSAL.NET. This will allow for disambiguation between MSAL usage by the app vs MSAL usage by component libraries. |
RedirectUri |
Obsolete.
The redirect URI (also known as Reply URI or Reply URL), is the URI at which Azure AD will contact back the application with the tokens. This redirect URI needs to be registered in the app registration (https://aka.ms/msal-net-register-app). In MSAL.NET, PublicClientApplication define the following default RedirectUri values:
|
SliceParameters |
Obsolete.
Sets or Gets a custom query parameters that may be sent to the STS for dogfood testing or debugging. This is a string of segments
of the form |
Users |
Obsolete.
In MSAL 1.x returned an enumeration of IUser. From MSAL 2.x, use GetAccountsAsync() instead. See https://aka.ms/msal-net-2-released for more details. |
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 |
ValidateAuthority |
Obsolete.
Gets/sets a boolean value telling the application if the authority needs to be verified against a list of known authorities. The default
value is |
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 |
AcquireTokenSilentAsync(IEnumerable<String>, IAccount, String, Boolean) |
Obsolete.
[V2 API] Attempts to acquire an access token for the |
AcquireTokenSilentAsync(IEnumerable<String>, IAccount) |
Obsolete.
[V2 API] Attempts to acquire an access token for the |
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. |
GetUser(String) |
Obsolete.
In MSAL 1.x, return a user from its identifier. From MSAL 2.x, use GetAccountsAsync() instead. See https://aka.ms/msal-net-2-released for more details. |
Remove(IUser) |
Obsolete.
In MSAL 1.x removed a user from the cache. From MSAL 2.x, use RemoveAsync(IAccount) instead. See https://aka.ms/msal-net-2-released for more details. |
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. |