AzureAdAuthentication class

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({required List<String> scopes}) Future<UserAdModel?>
Acquire a token interactively for the given scopes return UserAdModel contains user information but token and expiration date
acquireTokenSilent({required List<String> scopes}) Future<UserAdModel?>
Acquire a token silently, with no user interaction, for the given scopes return UserAdModel contains user information but token and expiration date
acquireTokenString({required List<String> scopes}) Future<String>
Acquire a token interactively for the given scopes return String {accessToken": xxx,"expiresOn" : xxx}
logout() Future
clear user input data
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({required String clientId, required String authority, String? redirectUri}) Future<AzureAdAuthentication>
initialize client application