PackageTrack
Sign in Get early access

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 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 49
  1. 2.3.3 08 Jul 2026
    Release notes
    • GOOGLE_CLOUD_QUOTA_PROJECT now takes precedence over a credential's
      quota_project_id when set.
    Open source →
    Release notes
    • GOOGLE_CLOUD_QUOTA_PROJECT now takes precedence over a credential's quota_project_id when set.
    Open source →
  2. 2.3.2 09 Jun 2026
    Release notes
    • Fix web compatibility by removing transitive dart:io and
      package:google_cloud imports from the core googleapis_auth.dart library.
    Open source →
    Release notes
    • Fix web compatibility by removing transitive dart:io and package:google_cloud imports from the core googleapis_auth.dart library.
    Open source →
  3. 2.3.1 12 May 2026
    Release notes
    • Require google_cloud: '>=0.3.0 <0.6.0'
    Open source →
    Release notes
    • Require google_cloud: '>=0.3.0 <0.6.0'
    Open source →
  4. 2.3.0 08 Apr 2026
    Release notes
    • Added clientViaRefreshToken() function for creating an AutoRefreshingAuthClient directly from a refresh token, ClientId, and scopes.
    Open source →
    Release notes
    • Added clientViaRefreshToken() function for creating an AutoRefreshingAuthClient directly from a refresh token, ClientId, and scopes.
    Open source →
  5. 2.2.1 30 Mar 2026
    Release notes
    • Require google_cloud: '>=0.3.0 <0.5.0'
    Open source →
    Release notes
    • Require google_cloud: '>=0.3.0 <0.5.0'
    Open source →
  6. 2.2.0 06 Mar 2026
    Release notes
    • Added quotaProject support to existing credentials classes
      (ServiceAccountCredentials, ClientViaServiceAccount, ClientFromFlow).
    • clientViaApplicationDefaultCredentials now extracts quotaProject correctly
      from service account credentials JSON.
    • clientViaServiceAccountImpersonation and ImpersonatedAuthClient now accept
      an optional baseClient.
    • Application Default Credentials (ADC) now supports impersonated_service_account
      source files.
    • Application Default Credentials (ADC) now supports external_account source files
      for Workload Identity Federation using Google Security Token Service.
    • Application Default Credentials (ADC) now propagate quota_project_id for
      Service Account credentials.
    • Added CredentialsFileException and AuthorizationCallbackException classes.
    • Replaced generic exception and error throws (such as Exception, ArgumentError,
      and UnsupportedError) with more specific exception types throughout the package to
      improve error handling and debuggability.
    • AuthClientSigningExtension.sign() now accepts an optional serviceAccountEmail
      parameter that is passed down to signBlob.
    Open source →
    Release notes
    • Added quotaProject support to existing credentials classes (ServiceAccountCredentials, ClientViaServiceAccount, ClientFromFlow).
    • clientViaApplicationDefaultCredentials now extracts quotaProject correctly from service account credentials JSON.
    • clientViaServiceAccountImpersonation and ImpersonatedAuthClient now accept an optional baseClient.
    • Application Default Credentials (ADC) now supports impersonated_service_account source files.
    • Application Default Credentials (ADC) now supports external_account source files for Workload Identity Federation using Google Security Token Service.
    • Application Default Credentials (ADC) now propagate quota_project_id for Service Account credentials.
    • Added CredentialsFileException and AuthorizationCallbackException classes.
    • Replaced generic exception and error throws (such as Exception, ArgumentError, and UnsupportedError) with more specific exception types throughout the package to improve error handling and debuggability.
    • AuthClientSigningExtension.sign() now accepts an optional serviceAccountEmail parameter that is passed down to signBlob.
    Open source →
  7. 2.1.0 18 Feb 2026
    Release notes
    • AuthClientSigningExtension: Added sign() which accepts an optional
      serviceAccountCredentials argument, and getServiceAccountEmail().
    • ServiceAccountCredentials
      • Added parsing for projectId and universeDomain properties.
      • Added sign() method for RSA-SHA256 signing.
    • Added signBlob() function for signing via IAM Credentials API.
    • MetadataServerAuthorizationFlow
      • Now uses getMetadataValue (caching) and fetchMetadataValue
        (non-caching) from package:google_cloud.
      • Added refresh support to run().
    • Added clientViaServiceAccountImpersonation() function and
      ImpersonatedAuthClient class for service account impersonation via IAM
      Credentials API.
    • Export RSAPrivateKey which is exposed by ServiceAccountCredentials.
    • Require google_cloud: ^0.3.0.
    • Require meta: ^1.15.0.
    • Require sdk: ^3.9.0.
    • Drop unneeded args dependency.
    Open source →
    Release notes
    • AuthClientSigningExtension: Added sign() which accepts an optional serviceAccountCredentials argument, and getServiceAccountEmail().
    • ServiceAccountCredentials
      • Added parsing for projectId and universeDomain properties.
      • Added sign() method for RSA-SHA256 signing.
    • Added signBlob() function for signing via IAM Credentials API.
    • MetadataServerAuthorizationFlow
      • Now uses getMetadataValue (caching) and fetchMetadataValue (non-caching) from package:google_cloud.
      • Added refresh support to run().
    • Added clientViaServiceAccountImpersonation() function and ImpersonatedAuthClient class for service account impersonation via IAM Credentials API.
    • Export RSAPrivateKey which is exposed by ServiceAccountCredentials.
    • Require google_cloud: ^0.3.0.
    • Require meta: ^1.15.0.
    • Require sdk: ^3.9.0.
    • Drop unneeded args dependency.
    Open source →
  8. 2.1.0-beta.1 11 Feb 2026 pre-release
    Release notes
    • Add serviceAccountCredentials getter to AuthClient
    • Added parsing for project_id and universe_domain properties for ServiceAccountCredentials
    • Add sign() method to ServiceAccountCredentials for RSA-SHA256 signing
    • Add IAMSigner class for signing via IAM Credentials API
    • Add clientViaServiceAccountImpersonation() function and ImpersonatedAuthClient class for service account impersonation via IAM Credentials API
    • Add AuthClientSigningExtension extension on AuthClient providing a universal sign() method that works across all auth contexts (service accounts, ADC, impersonated credentials)
    • Require meta: ^1.0.2
    • Require sdk: ^3.9.0
    • Drop unneeded args dependency.
    • Export RSAPrivateKey which is exposed by ServiceAccountCredentials.
    Open source →
  9. 2.0.0 28 Mar 2025
    Release notes
    • Removed deprecated RefreshFailedException.
    • Removed deprecated auth.dart library.
    • 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 from package:google_identity_serivces_web.
    Open source →
  10. 1.6.0 11 Apr 2024
    Release notes
    • Added support for custom post-auth html page
    Open source →
  11. 1.5.1 21 Mar 2024
    Release notes
    • auth_browser.dart: handle pop-up closed errors correctly.
    Open source →
  12. 1.5.0 27 Feb 2024
    Release notes
    • Add support for non-Google OAuth 2.0 providers.
    Open source →
  13. 1.4.2 20 Feb 2024
    Release notes
    • Require Dart 3.2 or later.
    • Require
      • google_identity_services_web: ^0.3.0
      • http: ^1.0.0
    Open source →
  14. 1.4.1 23 May 2023
    Release notes
    • Require Dart 2.19 or later.
    • Allow latest package:http.
    Open source →
  15. 1.4.0 13 Mar 2023
    Release notes
    • Update README to include a warning about Flutter application usage.
    • Require Dart 2.17 or later.

    googlapis_auth.dart

    • authenticatedClient function: added optional bool closeUnderlyingClient parameter.

    auth_browser.dart library

    • Added AuthenticationException and use it instead of Exception or StateError in many cases where authentication can fail.
    • Added requestAccessCredentials, requestAuthorizationCode, revokeConsent, and CodeResponse to support the new Google Identity Services.
    • Deprecated createImplicitBrowserFlow function.

    auth_io.dart library

    • Added an optional listenPort parameter to clientViaUserConsent and obtainAccessCredentialsViaUserConsent.
    Open source →
  16. 1.3.1 06 May 2022
    Release notes
    • Include plugin_name during browser authorization.
    Open source →
  17. 1.3.0 23 Nov 2021
    Release notes
    • The secret param in ClientId 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.)
    • 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 the tokeninfo endpoint.
        • Added optional codeVerifier parameter.
    Open source →
  18. 1.3.0-beta.1 20 Nov 2021 pre-release

    Nothing published for this version

  19. 1.3.0-beta.0 19 Nov 2021 pre-release

    Nothing published for this version

  20. 1.2.0 15 Oct 2021
    Release notes
    • Added an optional hostedDomain parameter to many functions in auth_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 from googleapis_auth.dart.
    • Added String? details to UserConsentException.
    • Update the host used to access metadata on Google Cloud. From http://metadata/ to http://metadata.google.internal.
    • Require Dart 2.13
    • Deprecated RefreshFailedException - ServerRequestFailedException is used instead.
    Open source →
  21. 1.1.0 07 Mar 2021
    Release notes
    • 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 and toJson method to AccessToken, AccessCredentials, and ClientId.
    • Remove dynamic function invocations.
    Open source →
  22. 1.0.0 10 Feb 2021
    Release notes
    • Add support for null-safety.
    • Require Dart 2.12 or later.
    Open source →
  23. 1.0.0-nullsafety.0 29 Jan 2021 pre-release

    Nothing published for this version

  24. 0.2.12 28 May 2020
    Release notes
    • Add clientViaApplicationDefaultCredentials for obtaining credentials using ADC.
    Open source →
  25. 0.2.12+1 26 Jan 2021
    Release notes
    • Removed a dart:async import that isn't required for >=Dart 2.1.
    • Require >=Dart 2.1.
    Open source →
  26. 0.2.11 22 Nov 2019
    Release notes
    • Add the force parameter to the obtainAccessCredentialsViaUserConsent API.
    Open source →
  27. 0.2.11+1 03 Jan 2020
    Release notes
    • Fix 'multiple completer completion' bug in ImplicitFlow.
    Open source →
  28. 0.2.10 15 Jul 2019
    Release notes
    • Look for GCE metadata host in environment under $GCE_METADATA_HOST.
    Open source →
  29. 0.2.9 11 Jul 2019
    Release notes
    • Prepare for [Uint8List SDK breaking change](Prepare for Uint8List SDK breaking change).
    Open source →
  30. 0.2.8 24 Jun 2019
    Release notes
    • Initialize implicit browser flows statically, allowing multiple ImplicitFlow objects to initialize without trying to load the gapi JavaScript library multiple times.
    Open source →
  31. 0.2.7 25 Feb 2019
    Release notes
    • Support for specifying desired ResponseType, allowing applications to obtain an id_token using ImplicitBrowserFlow.
    Open source →
  32. 0.2.6 09 Nov 2018
    Release notes
    • Ignore script loading error after timeout for in-browser implicit login-flow.
    Open source →
  33. 0.2.5 15 Mar 2018
    Release notes
    • 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.
    Open source →
  34. 0.2.5+1 12 Jul 2018
    Release notes
    • Switch all uppercase constants from dart:convert to lowercase.
    Open source →
  35. 0.2.5+2 07 Aug 2018
    Release notes
    • Support Dart 2.
    Open source →
  36. 0.2.5+3 24 Oct 2018
    Release notes
    • Support package:http >=0.11.3+17 <0.13.0.
    Open source →
  37. 0.2.4 18 Jan 2018
    Release notes
    • Added id_token to AccessCredentials

    • Migrated to Dart 2 BigInt.

    Open source →
  38. 0.2.3 05 Feb 2015
    Release notes
    • Allow ServiceAccountCredentials constructors to take an optional user argument to specify a user to impersonate.
    Open source →
  39. 0.2.3+1 05 Feb 2015

    Nothing published for this version

  40. 0.2.3+2 17 Feb 2016
    Release notes
    • Use preferred "Metadata-Flavor" HTTP header in MetadataServerAuthorizationFlow instead of the deprecated "X-Google-Metadata-Request" header.
    Open source →
  41. 0.2.3+3 20 May 2016
    Release notes
    • Support package:crypto >= 0.9.2
    Open source →
  42. 0.2.3+4 09 Jun 2016
    Release notes
    • Make package strong-mode compliant.
    Open source →
  43. 0.2.3+5 28 Aug 2016
    Release notes
    • Support the latest version of crypto package.
    Open source →
  44. 0.2.3+6 13 Mar 2017
    Release notes
    • Fix async issue in oauth2 flow implementation
    Open source →
  45. 0.2.2 24 Nov 2014
    Release notes
    • Allow ServiceAccountCredentials.fromJson to accept a Map.
    • Cleaned up README.md
    Open source →
  46. 0.2.1 12 Nov 2014
    Release notes
    • Added optional force and immediate arguments to runHybridFlow.
    Open source →
  47. 0.2.0 06 Nov 2014
    Release notes
    • Renamed forceUserConsent parameter to immediate.
    • Added runHybridFlow function to auth_browser, with corresponding HybridFlowResult class.
    Open source →
  48. 0.1.1 18 Sep 2014
    Release notes
    • Add clientViaApiKey functions to auth_io ad auth_browser.
    Open source →
  49. 0.1.0 10 Sep 2014
    Release notes
    • First release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive