IClientApplicationBase Interface
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.
Interface defining common API methods and properties. Both PublicClientApplication and ConfidentialClientApplication extend this class. For details see https://aka.ms/msal-net-client-applications
public interface IClientApplicationBase : Microsoft.Identity.Client.IApplicationBase
type IClientApplicationBase = interface
interface IApplicationBase
Public Interface IClientApplicationBase
Implements IApplicationBase
- Derived
- Implements
Properties
AppConfig |
Details on the configuration of the ClientApplication for debugging purposes. |
Authority |
Gets the URL of the authority, or the 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 which holds ID tokens, access tokens, and refresh tokens for accounts. It's used and updated silently if needed when calling AcquireTokenSilent(IEnumerable<String>, IAccount) It is updated by each acquire token method, with the exception of AcquireTokenForClient(IEnumerable<String>) which only uses the application cache (see AppTokenCache). |
ValidateAuthority |
Obsolete.
Gets 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) |
Attempts to acquire an access token for the |
AcquireTokenSilent(IEnumerable<String>, String) |
Attempts to acquire an access token for the |
AcquireTokenSilentAsync(IEnumerable<String>, IAccount, String, Boolean) |
Obsolete.
Attempts to acquire and access token for the |
AcquireTokenSilentAsync(IEnumerable<String>, IAccount) |
Obsolete.
Attempts to acquire an access token for the |
GetAccountAsync(String) |
Get the IAccount by its identifier among the accounts available in the token cache and of the same environment (authority host) as Authority. |
GetAccountsAsync() |
Returns all the available accounts in the user token cache for the application. |
GetAccountsAsync(String) |
Only for Azure AD B2C scenarios, get the IAccount collection by its identifier among the accounts available in the token cache based on the user flow. |
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) |
Removes all tokens in the cache for the specified account. |