Skip to content

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

517c08f
Select commit
Loading
Failed to load commit list.
Closed

fix google-auth: use auth.transport.requests as default #16076

google-auth: use auth.transport.requests as default
517c08f
Select commit
Loading
Failed to load commit list.
Conventional Commit Lint GCF / conventionalcommits.org failed Mar 11, 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 here.

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

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

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