PCAuthenticator class

PC(Windows/Mac) specific implementation of the AuthenticatorProvider.

This class creates a WebView window that opens the login page, providing a solution to the issue where PC users, after authentication, are not redirected back to their Flutter application. The WebView window is used instead of opening the login page in the default browser.

Inheritance

Constructors

PCAuthenticator(String _issuerUrl, List<String> _scopes, String _clientId, String _query, int _port)
Constructor to initialize the PCAuthenticator 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 using a WebView window.
override
close() → void
Closes the WebView window.
override
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
getWebViewPath() Future<String>
Retrieves the path for the WebView userDataFolder on PC.
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