PublicClientApplication class
Represents a PublicClientApplication used to authenticate using the implicit flow
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acquireToken(
List< String> scopes, [bool? clearSession]) → Future<String> -
Acquire a token interactively for the given
scopes
-
acquireTokenSilent(
List< String> scopes) → Future<String> -
Acquire a token silently, with no user interaction, for the given
scopes
-
loadAccounts(
) → Future< List< Map< >String, dynamic> > -
Acquire a token interactively for the given
scopes
-
logout(
{bool browserLogout = false}) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createPublicClientApplication(
String clientId, {String? authority, String? redirectUri, String? androidRedirectUri, String? iosRedirectUri, String? keychain, bool? privateSession}) → Future< PublicClientApplication> - @param clientId The id of the client, as registered in Azure AD @param authority The authority to authenticate against @param redirectUri The redirect uri registered for your application for all platforms @param androidRedirectUri Override for android specific redirectUri @param iosRedirectUri Override for iOS specific redirectUri @param privateSession is set to true to request that the browser doesn’t share cookies or other browsing data between the authentication session and the user’s normal browser session. Whether the request is honored depends on the user’s default web browser. Safari always honors the request. The value of this property is false by default. @param keychain this is only used in ios it won't affect android configuration for more info go to https://docs.microsoft.com/en-us/azure/active-directory/develop/single-sign-on-macos-ios#silent-sso-between-apps