Skip to content

google-auth: use auth.transport.requests as default

6b515e2
Select commit
Loading
Failed to load commit list.
Closed

google-auth: use auth.transport.requests as new default #16091

google-auth: use auth.transport.requests as default
6b515e2
Select commit
Loading
Failed to load commit list.
Conventional Commit Lint GCF / conventionalcommits.org failed Mar 12, 2026 in 0s

Commit message did not follow Conventional Commits

Some of your commit messages failed linting.

Visit conventionalcommits.org to learn our conventions.

Run git commit --amend and edit your message to match Conventional Commit guidelines.

Details

❌ The following linting errors found:

  • subject may not be empty
  • type may not be empty
    for the following input:
    "*google-auth: use auth.transport.requests as default

mtls support was recently added and added a hard requirement for requests.
google.auth.compute_engine would fail to load, if requests is missing, so
its safe to switch to google.auth.transport.requests as new default here.

therefore switch default from google.auth.transport._http_client.request()
to google.auth.transport.requests.request() which is required for mtls to work.

broken since google-auth 2.44.0 and later.

fixes the following code:
import google.auth
credentials, project_id = google.auth.default()
assert(project_id)

signed-off-by: ulrich weber ulrich.weber@gmail.com*"