google-auth: use auth.transport.requests as new default #16091
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*"