auth_browser.dart
: handle pop-up closed errors correctly.google_identity_services_web: ^0.3.0
http: ^1.0.0
package:http
.README
to include a warning about Flutter application usage.googlapis_auth.dart
authenticatedClient
function: added optional bool closeUnderlyingClient
parameter.auth_browser.dart
libraryAuthenticationException
and use it instead of Exception
or StateError
in many cases where authentication can fail.requestAccessCredentials
, requestAuthorizationCode
, revokeConsent
, and CodeResponse
to support the new Google Identity Services.createImplicitBrowserFlow
function.auth_io.dart
librarylistenPort
parameter to clientViaUserConsent
and obtainAccessCredentialsViaUserConsent
.plugin_name
during browser authorization.secret
param in ClientId
constructor is now optional.auth_browser
library:auth2
Javascript API.hostedDomain
to all applicable functions.createImplicitBrowserFlow
: added (unsupported) enableDebugLogs
param. (Maybe helpful for debugging, but should not be used in production.)auth_io
library:obtainAccessCredentialsViaCodeExchange
scopes
are now acquired from the initial API call and not via a separate API call to the tokeninfo
endpoint.codeVerifier
parameter.hostedDomain
parameter to many functions in auth_io.dart
. If provided, restricts sign-in to Google Apps hosted accounts at that domain.clientViaApiKey
is now exported from googleapis_auth.dart
.String? details
to UserConsentException
.http://metadata/
to http://metadata.google.internal
.RefreshFailedException
- ServerRequestFailedException
is used instead.googleapis_auth.dart
library. It is convention to have the default library within a package align with the package name. auth.dart
is now deprecated and will be removed in v2.fromJson
factory and toJson
method to AccessToken
, AccessCredentials
, and ClientId
.dart:async
import that isn't required for >=Dart 2.1.clientViaApplicationDefaultCredentials
for obtaining credentials using ADC.ImplicitFlow
.force
parameter to the obtainAccessCredentialsViaUserConsent
API.$GCE_METADATA_HOST
.ResponseType
, allowing applications to obtain an id_token
using ImplicitBrowserFlow
.package:http
>=0.11.3+17 <0.13.0
.dart:convert
to lowercase.loginHint
parameter to browser oauth2 flow APIs which can be used to specify a hint as to which user is being logged in.Added id_token
to AccessCredentials
Migrated to Dart 2 BigInt
.
crypto
package.MetadataServerAuthorizationFlow
instead of the deprecated “X-Google-Metadata-Request” header.ServiceAccountCredentials
constructors to take an optional user
argument to specify a user to impersonate.ServiceAccountCredentials.fromJson
to accept a Map
.README.md
force
and immediate
arguments to runHybridFlow
.forceUserConsent
parameter to immediate
.runHybridFlow
function to auth_browser
, with corresponding HybridFlowResult
class.clientViaApiKey
functions to auth_io
ad auth_browser
.