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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getAccessToken() Future<String?>
Retrieves the access token obtained during the authorization process.
override
login() Future<void>
throws an exception if the TokenResponse from AuthenticatorProvider is null.
logout() Future<void>
Performs logout by deleting locally stored token and user name, and making a request to the logout endpoint if available.
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 call login() in the catch block to open the authentication page for the user.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited