BrowserOAuth2Flow class
Used for obtaining oauth2 access credentials.
This member is deprecated. Use requestAccessCredentials or requestAuthorizationCode instead.
Warning:
The methods obtainAccessCredentialsViaUserConsent and clientViaUserConsent try to open a popup window for the user authorization dialog.
In order to prevent browsers from blocking the popup window, these methods should only be called inside an event handler, since most browsers do not block popup windows created in response to a user interaction.
- Annotations
-
- @Deprecated('This member is deprecated. Use requestAccessCredentials or ' 'requestAuthorizationCode instead.')
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
-
clientViaUserConsent(
{bool immediate = false, String? loginHint, String? hostedDomain}) → Future< AutoRefreshingAuthClient> - Obtains AccessCredentials and returns an authenticated HTTP client.
-
close(
) → void -
Will close this BrowserOAuth2Flow object and the HTTP
Client
it is using. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
obtainAccessCredentialsViaUserConsent(
{bool force = false, bool immediate = false, String? loginHint, List< ResponseType> ? responseTypes, String? hostedDomain}) → Future<AccessCredentials> - Obtain oauth2 AccessCredentials.
-
runHybridFlow(
{bool force = true, bool immediate = false, String? loginHint, String? hostedDomain}) → Future< HybridFlowResult> - Obtains AccessCredentials and an authorization code which can be exchanged for permanent access credentials.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited