IClientApplicationBase Interface

Definition

public interface IClientApplicationBase
type IClientApplicationBase = interface
Public Interface IClientApplicationBase
Derived

Properties

AppConfig

Details on the configuration of the ClientApplication for debugging purposes.

Authority
ClientId

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.

RedirectUri

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:

  • urn:ietf:wg:oauth:2.0:oob for desktop (.NET Framework and .NET Core) applications
  • msal{ClientId} for Xamarin iOS and Xamarin Android (as this will be used by the system web browser by default on these platforms to call back the application)
These default URIs could change in the future. In ConfidentialClientApplication, this can be the URL of the Web application / Web API.
UserTokenCache

Methods

AcquireTokenSilent(IEnumerable<String>, IAccount)

Attempts to acquire an access token for the account from the user token cache, with advanced parameters controlling the network call. See https://aka.ms/msal-net-acquiretokensilent for more details

AcquireTokenSilent(IEnumerable<String>, String)

Attempts to acquire an access token for the loginHint from the user token cache, with advanced parameters controlling the network call. See https://aka.ms/msal-net-acquiretokensilent for more details

AcquireTokenSilentAsync(IEnumerable<String>, IAccount)

Attempts to acquire an access token for the account from the user token cache.

AcquireTokenSilentAsync(IEnumerable<String>, IAccount, String, Boolean)

Attempts to acquire and access token for the account from the user token cache, with advanced parameters making a network call.

GetAccountAsync(String)

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

GetAccountsAsync()

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

RemoveAsync(IAccount)

Removes all tokens in the cache for the specified account.

Applies to