- Require Dart 3.0 or later.
- Require Dart 2.19 or later.
- Allow latest
package:http
.
- Update
README
to include a warning about Flutter application usage. - Require Dart 2.17 or later.
authenticatedClient
function: added optionalbool closeUnderlyingClient
parameter.
- Added
AuthenticationException
and use it instead ofException
orStateError
in many cases where authentication can fail. - Added
requestAccessCredentials
,requestAuthorizationCode
,revokeConsent
, andCodeResponse
to support the new Google Identity Services. - Deprecated
createImplicitBrowserFlow
function.
- Added an optional
listenPort
parameter toclientViaUserConsent
andobtainAccessCredentialsViaUserConsent
.
- Handle the
source_credentials
from the credentials file to support usage of impersonating service account with gcloud cli.
- Include
plugin_name
during browser authorization.
- The
secret
param inClientId
constructor is now optional. - Use the latest supported Google OAuth 2.0 URL
auth_browser
library:- Migrated to newer
auth2
Javascript API. - Added support for
hostedDomain
to all applicable functions. createImplicitBrowserFlow
: added (unsupported)enableDebugLogs
param. (Maybe helpful for debugging, but should not be used in production.)
- Migrated to newer
auth_io
library:- Generate a longer, secure random state token.
- Implement code verifier logic for the desktop auth flows. See https://developers.google.com/identity/protocols/oauth2/native-app#create-code-challenge
obtainAccessCredentialsViaCodeExchange
scopes
are now acquired from the initial API call and not via a separate API call to thetokeninfo
endpoint.- Added optional
codeVerifier
parameter.
- Added an optional
hostedDomain
parameter to many functions inauth_io.dart
. If provided, restricts sign-in to Google Apps hosted accounts at that domain. - Fix an error when doing OAUTH code exchanged with an undefined secret.
clientViaApiKey
is now exported fromgoogleapis_auth.dart
.- Added
String? details
toUserConsentException
. - Update the host used to access metadata on Google Cloud. From
http://metadata/
tohttp://metadata.google.internal
. - Require Dart 2.13
- Deprecated
RefreshFailedException
-ServerRequestFailedException
is used instead.
- Added the
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. - Added
fromJson
factory andtoJson
method toAccessToken
,AccessCredentials
, andClientId
. - Remove dynamic function invocations.
- Add support for null-safety.
- Require Dart 2.12 or later.
- Removed a
dart:async
import that isn't required for >=Dart 2.1. - Require >=Dart 2.1.
- Add
clientViaApplicationDefaultCredentials
for obtaining credentials using ADC.
- Fix 'multiple completer completion' bug in
ImplicitFlow
.
- Add the
force
parameter to theobtainAccessCredentialsViaUserConsent
API.
- Look for GCE metadata host in environment under
$GCE_METADATA_HOST
.
- Prepare for [Uint8List SDK breaking change](Prepare for Uint8List SDK breaking change).
- Initialize implicit browser flows statically, allowing multiple ImplicitFlow objects to initialize without trying to load the gapi JavaScript library multiple times.
- Support for specifying desired
ResponseType
, allowing applications to obtain anid_token
usingImplicitBrowserFlow
.
- Ignore script loading error after timeout for in-browser implicit login-flow.
- Support
package:http
>=0.11.3+17 <0.13.0
.
- Support Dart 2.
- Switch all uppercase constants from
dart:convert
to lowercase.
- Add an optional
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
toAccessCredentials
-
Migrated to Dart 2
BigInt
.
- Fix async issue in oauth2 flow implementation
- Support the latest version of
crypto
package.
- Make package strong-mode compliant.
- Support package:crypto >= 0.9.2
- Use preferred "Metadata-Flavor" HTTP header in
MetadataServerAuthorizationFlow
instead of the deprecated "X-Google-Metadata-Request" header.
- Allow
ServiceAccountCredentials
constructors to take an optionaluser
argument to specify a user to impersonate.
- Allow
ServiceAccountCredentials.fromJson
to accept aMap
. - Cleaned up
README.md
- Added optional
force
andimmediate
arguments torunHybridFlow
.
- Renamed
forceUserConsent
parameter toimmediate
. - Added
runHybridFlow
function toauth_browser
, with correspondingHybridFlowResult
class.
- Add
clientViaApiKey
functions toauth_io
adauth_browser
.
- First release.