googleapis_auth
Obtain Access credentials for Google services using OAuth 2.0
2.3.3
1.5M downloads/mo
#287 most downloaded on pub.dev
google/googleapis.dart
What this package is like to depend on
Last release 1 months ago
08 Jul 2026
Ships unpredictably
gaps range from 8 days to 12 months
Nearly every release is documented
notes for 44 of 45 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
49 releases · first in 2014
8 releases in the last 12 months
see the full history below
Release timeline
49 releases · Sep 2014 to Jul 2026Releases
latest 49-
2.3.308 Jul 2026Release notes
Open source →GOOGLE_CLOUD_QUOTA_PROJECTnow takes precedence over a credential's
quota_project_idwhen set.
Release notes
Open source →GOOGLE_CLOUD_QUOTA_PROJECTnow takes precedence over a credential'squota_project_idwhen set.
-
2.3.209 Jun 2026Release notes
Open source →- Fix web compatibility by removing transitive
dart:ioand
package:google_cloudimports from the coregoogleapis_auth.dartlibrary.
Release notes
Open source →- Fix web compatibility by removing transitive
dart:ioandpackage:google_cloudimports from the coregoogleapis_auth.dartlibrary.
- Fix web compatibility by removing transitive
-
2.3.112 May 2026 -
2.3.008 Apr 2026Release notes
Open source →- Added
clientViaRefreshToken()function for creating anAutoRefreshingAuthClientdirectly from a refresh token,ClientId, and scopes.
Release notes
Open source →- Added
clientViaRefreshToken()function for creating anAutoRefreshingAuthClientdirectly from a refresh token,ClientId, and scopes.
- Added
-
2.2.130 Mar 2026 -
2.2.006 Mar 2026Release notes
Open source →- Added
quotaProjectsupport to existing credentials classes
(ServiceAccountCredentials,ClientViaServiceAccount,ClientFromFlow). clientViaApplicationDefaultCredentialsnow extractsquotaProjectcorrectly
from service account credentials JSON.clientViaServiceAccountImpersonationandImpersonatedAuthClientnow accept
an optionalbaseClient.- Application Default Credentials (ADC) now supports
impersonated_service_account
source files. - Application Default Credentials (ADC) now supports
external_accountsource files
for Workload Identity Federation usingGoogle Security Token Service. - Application Default Credentials (ADC) now propagate
quota_project_idfor
Service Account credentials. - Added
CredentialsFileExceptionandAuthorizationCallbackExceptionclasses. - Replaced generic exception and error throws (such as
Exception,ArgumentError,
andUnsupportedError) with more specific exception types throughout the package to
improve error handling and debuggability. AuthClientSigningExtension.sign()now accepts an optionalserviceAccountEmail
parameter that is passed down tosignBlob.
Release notes
Open source →- Added
quotaProjectsupport to existing credentials classes (ServiceAccountCredentials,ClientViaServiceAccount,ClientFromFlow). clientViaApplicationDefaultCredentialsnow extractsquotaProjectcorrectly from service account credentials JSON.clientViaServiceAccountImpersonationandImpersonatedAuthClientnow accept an optionalbaseClient.- Application Default Credentials (ADC) now supports
impersonated_service_accountsource files. - Application Default Credentials (ADC) now supports
external_accountsource files for Workload Identity Federation usingGoogle Security Token Service. - Application Default Credentials (ADC) now propagate
quota_project_idfor Service Account credentials. - Added
CredentialsFileExceptionandAuthorizationCallbackExceptionclasses. - Replaced generic exception and error throws (such as
Exception,ArgumentError, andUnsupportedError) with more specific exception types throughout the package to improve error handling and debuggability. AuthClientSigningExtension.sign()now accepts an optionalserviceAccountEmailparameter that is passed down tosignBlob.
- Added
-
2.1.018 Feb 2026Release notes
Open source →AuthClientSigningExtension: Addedsign()which accepts an optional
serviceAccountCredentialsargument, andgetServiceAccountEmail().ServiceAccountCredentials- Added parsing for
projectIdanduniverseDomainproperties. - Added
sign()method for RSA-SHA256 signing.
- Added parsing for
- Added
signBlob()function for signing via IAM Credentials API. MetadataServerAuthorizationFlow- Now uses
getMetadataValue(caching) andfetchMetadataValue
(non-caching) frompackage:google_cloud. - Added
refreshsupport torun().
- Now uses
- Added
clientViaServiceAccountImpersonation()function and
ImpersonatedAuthClientclass for service account impersonation via IAM
Credentials API. - Export
RSAPrivateKeywhich is exposed byServiceAccountCredentials. - Require
google_cloud: ^0.3.0. - Require
meta: ^1.15.0. - Require
sdk: ^3.9.0. - Drop unneeded
argsdependency.
Release notes
Open source →AuthClientSigningExtension: Addedsign()which accepts an optionalserviceAccountCredentialsargument, andgetServiceAccountEmail().ServiceAccountCredentials- Added parsing for
projectIdanduniverseDomainproperties. - Added
sign()method for RSA-SHA256 signing.
- Added parsing for
- Added
signBlob()function for signing via IAM Credentials API. MetadataServerAuthorizationFlow- Now uses
getMetadataValue(caching) andfetchMetadataValue(non-caching) frompackage:google_cloud. - Added
refreshsupport torun().
- Now uses
- Added
clientViaServiceAccountImpersonation()function andImpersonatedAuthClientclass for service account impersonation via IAM Credentials API. - Export
RSAPrivateKeywhich is exposed byServiceAccountCredentials. - Require
google_cloud: ^0.3.0. - Require
meta: ^1.15.0. - Require
sdk: ^3.9.0. - Drop unneeded
argsdependency.
-
2.1.0-beta.111 Feb 2026 pre-releaseRelease notes
Open source →- Add
serviceAccountCredentialsgetter to AuthClient - Added parsing for project_id and universe_domain properties for ServiceAccountCredentials
- Add
sign()method toServiceAccountCredentialsfor RSA-SHA256 signing - Add
IAMSignerclass for signing via IAM Credentials API - Add
clientViaServiceAccountImpersonation()function andImpersonatedAuthClientclass for service account impersonation via IAM Credentials API - Add
AuthClientSigningExtensionextension onAuthClientproviding a universalsign()method that works across all auth contexts (service accounts, ADC, impersonated credentials) - Require
meta: ^1.0.2 - Require
sdk: ^3.9.0 - Drop unneeded
argsdependency. - Export
RSAPrivateKeywhich is exposed byServiceAccountCredentials.
- Add
-
2.0.028 Mar 2025Release notes
Open source →- Removed deprecated
RefreshFailedException. - Removed deprecated
auth.dartlibrary. - Require
sdk: ^3.6.0
auth_browser.dart- Enable use via WebAssembly.
- Remove deprecated browser flows.
- Removed local definition of
CodeResponse. Exports the same class frompackage:google_identity_serivces_web.
- Removed deprecated
-
1.6.011 Apr 2024 -
1.5.121 Mar 2024 -
1.5.027 Feb 2024 -
1.4.220 Feb 2024Release notes
Open source →- Require Dart 3.2 or later.
- Require
google_identity_services_web: ^0.3.0http: ^1.0.0
-
1.4.123 May 2023 -
1.4.013 Mar 2023Release notes
Open source →- Update
READMEto include a warning about Flutter application usage. - Require Dart 2.17 or later.
googlapis_auth.dartauthenticatedClientfunction: added optionalbool closeUnderlyingClientparameter.
auth_browser.dartlibrary- Added
AuthenticationExceptionand use it instead ofExceptionorStateErrorin many cases where authentication can fail. - Added
requestAccessCredentials,requestAuthorizationCode,revokeConsent, andCodeResponseto support the new Google Identity Services. - Deprecated
createImplicitBrowserFlowfunction.
auth_io.dartlibrary- Added an optional
listenPortparameter toclientViaUserConsentandobtainAccessCredentialsViaUserConsent.
- Update
-
1.3.106 May 2022 -
1.3.023 Nov 2021Release notes
Open source →- The
secretparam inClientIdconstructor is now optional. - Use the latest supported Google OAuth 2.0 URL
auth_browserlibrary:- Migrated to newer
auth2Javascript API. - Added support for
hostedDomainto all applicable functions. createImplicitBrowserFlow: added (unsupported)enableDebugLogsparam. (Maybe helpful for debugging, but should not be used in production.)
- Migrated to newer
auth_iolibrary:- 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
obtainAccessCredentialsViaCodeExchangescopesare now acquired from the initial API call and not via a separate API call to thetokeninfoendpoint.- Added optional
codeVerifierparameter.
- The
-
1.3.0-beta.120 Nov 2021 pre-releaseNothing published for this version
-
1.3.0-beta.019 Nov 2021 pre-releaseNothing published for this version
-
1.2.015 Oct 2021Release notes
Open source →- Added an optional
hostedDomainparameter 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.
clientViaApiKeyis now exported fromgoogleapis_auth.dart.- Added
String? detailstoUserConsentException. - Update the host used to access metadata on Google Cloud. From
http://metadata/tohttp://metadata.google.internal. - Require Dart 2.13
- Deprecated
RefreshFailedException-ServerRequestFailedExceptionis used instead.
- Added an optional
-
1.1.007 Mar 2021Release notes
Open source →- Added the
googleapis_auth.dartlibrary. It is convention to have the default library within a package align with the package name.auth.dartis now deprecated and will be removed in v2. - Added
fromJsonfactory andtoJsonmethod toAccessToken,AccessCredentials, andClientId. - Remove dynamic function invocations.
- Added the
-
1.0.010 Feb 2021 -
1.0.0-nullsafety.029 Jan 2021 pre-releaseNothing published for this version
-
0.2.1228 May 2020Release notes
Open source →- Add
clientViaApplicationDefaultCredentialsfor obtaining credentials using ADC.
- Add
-
0.2.12+126 Jan 2021Release notes
Open source →- Removed a
dart:asyncimport that isn't required for >=Dart 2.1. - Require >=Dart 2.1.
- Removed a
-
0.2.1122 Nov 2019Release notes
Open source →- Add the
forceparameter to theobtainAccessCredentialsViaUserConsentAPI.
- Add the
-
0.2.11+103 Jan 2020 -
0.2.1015 Jul 2019 -
0.2.911 Jul 2019Release notes
Open source →- Prepare for [Uint8List SDK breaking change](Prepare for Uint8List SDK breaking change).
-
0.2.824 Jun 2019Release notes
Open source →- Initialize implicit browser flows statically, allowing multiple ImplicitFlow objects to initialize without trying to load the gapi JavaScript library multiple times.
-
0.2.725 Feb 2019Release notes
Open source →- Support for specifying desired
ResponseType, allowing applications to obtain anid_tokenusingImplicitBrowserFlow.
- Support for specifying desired
-
0.2.609 Nov 2018Release notes
Open source →- Ignore script loading error after timeout for in-browser implicit login-flow.
-
0.2.515 Mar 2018Release notes
Open source →- Add an optional
loginHintparameter to browser oauth2 flow APIs which can be used to specify a hint as to which user is being logged in.
- Add an optional
-
0.2.5+112 Jul 2018 -
0.2.5+207 Aug 2018 -
0.2.5+324 Oct 2018 -
0.2.418 Jan 2018 -
0.2.305 Feb 2015Release notes
Open source →- Allow
ServiceAccountCredentialsconstructors to take an optionaluserargument to specify a user to impersonate.
- Allow
-
0.2.3+105 Feb 2015Nothing published for this version
-
0.2.3+217 Feb 2016Release notes
Open source →- Use preferred "Metadata-Flavor" HTTP header in
MetadataServerAuthorizationFlowinstead of the deprecated "X-Google-Metadata-Request" header.
- Use preferred "Metadata-Flavor" HTTP header in
-
0.2.3+320 May 2016 -
0.2.3+409 Jun 2016 -
0.2.3+528 Aug 2016 -
0.2.3+613 Mar 2017 -
0.2.224 Nov 2014Release notes
Open source →- Allow
ServiceAccountCredentials.fromJsonto accept aMap. - Cleaned up
README.md
- Allow
-
0.2.112 Nov 2014 -
0.2.006 Nov 2014Release notes
Open source →- Renamed
forceUserConsentparameter toimmediate. - Added
runHybridFlowfunction toauth_browser, with correspondingHybridFlowResultclass.
- Renamed
-
0.1.118 Sep 2014 -
0.1.010 Sep 2014