NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #1080 most downloaded on PyPI
Python Client for Google Cloud Auth
Latest stable
5.6.1
Last release 29 days ago
04 Nov 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
9 years old
74 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Token.get_project() now caches the project it resolves on the token instance. With GCE-metadata credentials it used to query the metadata server on ev
Token.get_project() now caches the project it resolves on the token instance. With GCE-metadata credentials it used to query the metadata server on every call; now only the first call does, and later calls reuse the result. Service-account credentials store their project_id the same way. The environment-variable overrides are still checked first on every call, so they keep taking precedence. No API changes.IamClient now supports impersonated service account tokens; service_account_email is derived from the impersonation URL when the service data has no c
IamClient now supports impersonated service account tokens; service_account_email is derived from the impersonation URL when the service data has no client_email (#1142)external_account credentials without an explicit credential_source.type (eg. those generated by gcloud iam workload-identity-pools create-cred-config) now have their type inferred, matching google-auth (#1184)CLOUDSDK_CONFIG to a directory without application_default_credentials.json now falls back to the GCE metadata service instead of raising FileNotFoundError, matching google-auth; a missing GOOGLE_APPLICATION_CREDENTIALS file still raises (#1094)Your coding agent can read these notes before it upgrades. Set up the MCP server →
no functional changes since 5.5.2
include the error response body in SyncSession HTTPErrors (gcloud-rest-auth only)
SyncSession HTTPErrors (gcloud-rest-auth only) (#1146)fix two external_account scope-handling bugs
external_account scope-handling bugs (#1092)support EXTERNAL_ACCOUNT credential type
allow auto_decompress to be null to avoid overwriting configured ClientSession settings
auto_decompress to be null to avoid overwriting configured ClientSession settingsBaseToken.ensure_token should not cache failed calls to acquire_access_token (#886) -- thanks @tonyay163!
BaseToken.ensure_token should not cache failed calls to acquire_access_token (#886) -- thanks @tonyay163!fix 'Token' object has no attribute 'scopes' error (#883) -- thanks @tgwizard!
'Token' object has no attribute 'scopes' error (#883) -- thanks @tgwizard!support metadata env overrides (#834) -- thanks @lanbochen-anyscale!
id_token result using a service account (#840) -- thanks @alexdialpad!use the full format for the JWT payload in IAPToken
use the full format for the JWT payload in IAPToken
The previous release (v5.3.0) was incorrectly marked as compatible with older aiohttp versions. This release fixes the listed range to aiohttp>=3.9.0.
The previous release (v5.3.0) was incorrectly marked as compatible with older aiohttp versions. This release fixes the listed range to aiohttp>=3.9.0. but is otherwise identical. v5.3.0 will be yanked.
support auto_decompress argument passthrough to session implementations (#698 and #713) -- thanks @fbalboaDialpad!
auto_decompress argument passthrough to session implementations (#698 and #713) -- thanks @fbalboaDialpad!fix _refresh_gce_metadata() for gcloud-rest-auth
_refresh_gce_metadata() for gcloud-rest-auth (#695)add support for aiohttp >=3.9.2
aiohttp >=3.9.2add support for service account impersonation (#665) -- thanks @m1racoli!
update aiohttp compatibility ranges to <3.9.2 (until we figure out the Timeout changes which are breaking things!)
Correctly set ssl flag for aio (#661) by @jonathan-johnston
Use the typical IAP audience for fetching ID tokens from the GCE metadata server in IapToken (#646) by @jonathan-johnston
IapToken (#646) by @jonathan-johnstonCreate IAP auth token (#637) by @jonathan-johnston
chore(auth): release alpha version for testing
refactor: migrate to PEP 420 namespace packages (#626) by @TheKevJames
Reset token acquisition future after failure
Reset token acquisition future after failure (#628)
fix(auth): reset token acquisition future after failure
Bump maximally compatible chardet (to v5.x) and cryptography (to v40) versions.
Bump maximally compatible chardet (to v5.x) and cryptography (to v40) versions.
Drop support for python2.7 in gcloud-rest-auth.
Drop support for python2.7 in gcloud-rest-auth.
bump cryptography dependency to dodge a CVE
cryptography dependency to dodge a CVEfix a deprecated aiohttp usage in Python3.11+ (use ssl instead of verify_ssl) -- #558, thanks @kylepad!
ssl instead of verify_ssl) -- #558, thanks @kylepad!Note that this is a re-release of v4.1.3 and v4.1.4, both of which failed in our release pipeline.
broaden some Session type hints
further fix Session type hints for variant Mappings
support application default credentials on Windows -- thanks @hrichardlee
gcloud-rest-authbroaden support for backoff versions (mark v2.x as supported)
backoff versions (mark v2.x as supported)We've done our best to avoid having this cause any breaking changes, but with such a large change we decided to be safe. Please report any packaging i…
Migrate to using poetry as a package manager (#443)
We've done our best to avoid having this cause any breaking changes, but with such a large change we decided to be safe. Please report any packaging issues you come across and we'll get them resolved as soon as we can!
Nothing published for this version
Coerce AioSession timeout to aiohttp.ClientTimeout when building aiohttp.ClientSession
AioSession timeout to aiohttp.ClientTimeout when building aiohttp.ClientSession (#444)allow timeout for AioSession to be ClientTimeout or float (#429) -- thanks @orsinium!
AioSession to be ClientTimeout or float (#429) -- thanks @orsinium!SyncSession to be float (#429) -- thanks @orsinium!Nothing published for this version
use aiohttp.ClientTimeout directly -- this should avoid some compatibility issues with aiohttp
aiohttp.ClientTimeout directly -- this should avoid some compatibility issues with aiohttpaiohttp.TCPConnector objectsavoid unnecessary TCPConnector init
prevent closing shared sessions from aio/rest sessions
add support for streaming get requests (via SyncSession().get(..., stream=True)
SyncSession().get(..., stream=True)Add new Session.patch() method for making HTTP PATCH requests (#311) -- thanks @eddiedialpad !
Add new Session.patch() method for making HTTP PATCH requests (#311) -- thanks @eddiedialpad !
Forcibly pins the dependency of a dependency, which may fix installation with naive dependency resolvers (such as the one used in pip<20.3.0)
Forcibly pins the dependency of a dependency, which may fix installation with naive dependency resolvers (such as the one used in pip<20.3.0)
params argument is now optional for both AioSession.delete() and SyncSession.delete()
params argument is now optional for both AioSession.delete() and SyncSession.delete() (#245)Deprecate support for aiohttp < 3.3.0 -- that version is over two years old and has some pretty significant API differences which won't be compatible…
Deprecate support for aiohttp < 3.3.0 -- that version is over two years old and has some pretty significant API differences which won't be compatible with v4+.
improves upon the fix for aiohttp's dependency on yarl, which caused some compatibility issues in constrained environments such as Google Cloud Functi
aiohttp's dependency on yarl, which caused some compatibility issues in constrained environments such as Google Cloud Functions
For users in these constrained environments, links have been added to help you include the correct version pins without your own app dependencies.hardcodes a fix for aiohttp's dependency on yarl, which should fixup some compatibility issues in constrained environments such as Google Cloud Functi
aiohttp's dependency on yarl, which should fixup some compatibility issues in constrained environments such as Google Cloud Functionsavoid unnecessary exception logs
Rather than unconditionally grabbing response bodies and logging 'em in case of failure, grab them only in the error case and toss them into the exception body.
This should improve performance around large files (we don't need to parse 'em) and avoid polluting logs (especially in successful cases where the exception is expected, eg. .check_exists())
Fixes #179
bump max compatible requests version (verified compatible up to < 3.0.0)
< 3.0.0)allow disabling ssl verification The goal here is to allow users to interact with insecure GCP-like systems, eg. for local emulation. Support for indi
gcloud-aio libs to make full use of this.remove dependency on typing (#160) -- thanks @mozbhearsum! Removes the dependency for any cases where it has been built into Python (eg. Python >3.6.2
typing (#160) -- thanks @mozbhearsum!
Removes the dependency for any cases where it has been built into Python (eg. Python >3.6.2). This should fix some incompatibility issues on newer versions of Python.Fix some issues with the error handling we released in v3.2.0 which may have caused the wrong exception class to get raised for aio http errors. Thank
Fix some issues with the error handling we released in v3.2.0 which may have caused the wrong exception class to get raised for aio http errors. Thanks for the bug report and deep dive @froosty!
add error logging for aio http exceptions
properly close implicitly-created Token/IamClient sessions via context manager or .close() method (#152) -- thanks @elysium31 !
Token/IamClient sessions via context manager or .close() method (#152) -- thanks @elysium31 !update docs for gcloud-aio / gcloud-rest multi-build
gcloud-aio / gcloud-rest multi-buildThis release marks the consolidation of gcloud-aio and gcloud-rest into the same codebase. With this release, gcloud-aio-auth and gcloud-rest-auth wil
This release marks the consolidation of gcloud-aio and gcloud-rest into the same codebase. With this release, gcloud-aio-auth and gcloud-rest-auth will be generated from the same source-of-truth codebase.
Since gcloud-aio-auth was far ahead in features, that means gcloud-rest-auth will see a whole slew of features in this release; please read the previous gcloud-aio-auth release notes to get caught up!
There are no new features for gcloud-aio-auth in this release, but all future development will be on this consolidated codebase. Please pin to gcloud-aio-auth<3 until you are ready to update!
Allow service_file in Token constructor to be an io.IOBase instance, in order to support loading service accounts from memory rather than requiring a
Allow service_file in Token constructor to be an io.IOBase instance, in order to support loading service accounts from memory rather than requiring a literal file. (#95)
Allow tokens provisioned from the GCE metadata server to use the IAM Client -- turns out this filter was a bit too narrow -- GCE metadata can also be
Allow tokens provisioned from the GCE metadata server to use the IAM Client -- turns out this filter was a bit too narrow -- GCE metadata can also be used to access these APIs.
fix an edge case where changing the timezone of your running process during a Token refresh would cause gcloud-aio-auth to stop refreshing your token
gcloud-aio-auth to stop refreshing your token until your new timezone had caught up to previous one (#79)One column per quarter.