AzureAuth class
Azure login provider implementing TokenProvider.
- Implemented types
Constructors
- AzureAuth({required AuthenticatorProvider authenticatorProvider, StorageProvider? storageProvider})
- Constructor to initialize the AzureAuth instance.
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
-
getAccessToken(
) → Future< String?> -
Retrieves the access token obtained during the authorization process.
override
-
getUserInfo(
) → Future< User?> -
Retrieves stored user information from the secure storage.
override
-
login(
) → Future< void> -
throws an exception if the TokenResponse from AuthenticatorProvider is null.
override
-
logout(
) → Future< void> -
Performs logout by deleting locally stored token and user name,
and making a request to the logout endpoint if available.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
silentLogin(
) → Future< void> -
Attempts to perform a silent login using a previously stored token response obtained from the
storageProvider
. Throws an error if the silent login fails. Use a try-catch block and calllogin()
in the catch block to open the authentication page for the user.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited