DefaultAuthenticator class

Default implementation of AuthenticatorProvider.

Inheritance

Constructors

DefaultAuthenticator(String _issuerUrl, List<String> _scopes, String _clientId, String _query, int _port)
Constructor to initialize the DefaultAuthenticator instance.

Properties

credential ↔ Credential?
Where the authorize() stores the credential after successfull login.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize({String? tokenResponseString}) Future<void>
Initiates the authorization process.
override
close() → void
Closes any resources or UI related to the authentication process.
override
fromTokenResponseString(Client client, String tokenResponseString) → Credential
Converts tokenResponse String it into Credential
generateLogoutUrl() Uri?
Generates a logout URL based on the current credentials.
inherited
getTokenResponse([bool forceRefresh = false]) Future<TokenResponse?>
Retrieves the token response obtained during the authorization process.
inherited
getUserInfo() String?
Retrieves the user info obtained during the authorization process.
inherited
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