UserAgentApplication class
An MSAL authentication context.
See https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics for more information.
Constructors
- UserAgentApplication(Configuration configuration)
-
Creates a new MSAL authentication context from the given
configuration
. [...]factory
Properties
-
Gets the authority for this application.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
acquireTokenPopup(
AuthRequest request) → Future< AuthResponse> - Acquires an access token using interactive authentication via a popup Window. [...]
-
acquireTokenRedirect(
AuthRequest request) → void - Acquires an access token by redirecting the user to the authorization endpoint. [...]
-
acquireTokenSilent(
AuthRequest request) → Future< AuthResponse> - Acquires an access token by using a cached token if available or by sending a request to the authorization endpoint to obtain a new token using a hidden iframe. [...]
-
getAccount(
) → Account -
Gets the signed in account or
null
if no-one is signed in. -
getAllAccounts(
) → List< Account> -
Gets all currently cached unique accounts based on
homeAccountIdentifier
. -
getCurrentConfiguration(
) → Configuration - Returns the current configuration of this user agent application.
-
getLoginInProgress(
) → bool - Returns whether a login is currently in progress.
-
getPostLogoutRedirectUri(
) → String - Returns the post-logout redirect URI currently configured. [...]
-
getRedirectUri(
) → String - Returns the redirect URI currently configured. [...]
-
handleRedirectCallback(
AuthResponseCallback callback) → void - Sets the callback function for the redirect flow. [...]
-
loginPopup(
[AuthRequest request]) → Future< AuthResponse> - Initiates the login process by opening a popup browser window. [...]
-
loginRedirect(
[AuthRequest request]) → void - Initiates the login process by redirecting the user to the authorization endpoint.
-
logout(
) → void -
Logs out the current user, and redirects to the
postLogoutRedirectUri
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setLogger(
Logger logger) → void - Sets the logger to be used by the application.
-
ssoSilent(
AuthRequest request) → Future< AuthResponse> - Establishes user context silently with SSO when an existing session is known. [...]
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited