From 8cf1cb1663fccd03ea17a1bf055d862bddf61406 Mon Sep 17 00:00:00 2001 From: Timur Sadykov Date: Wed, 30 Oct 2024 11:25:21 -0700 Subject: [PATCH] fix: adding default parameters to updated interfaces (#1622) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: adding default parameters to updated interfaces * fix: adding default UD parameter to client * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- google/auth/impersonated_credentials.py | 7 ++++++- google/oauth2/_client.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py index 22583da34..d51c8ef1e 100644 --- a/google/auth/impersonated_credentials.py +++ b/google/auth/impersonated_credentials.py @@ -46,7 +46,12 @@ def _make_iam_token_request( - request, principal, headers, body, universe_domain, iam_endpoint_override=None + request, + principal, + headers, + body, + universe_domain=credentials.DEFAULT_UNIVERSE_DOMAIN, + iam_endpoint_override=None, ): """Makes a request to the Google Cloud IAM service for an access token. Args: diff --git a/google/oauth2/_client.py b/google/oauth2/_client.py index 98d9599cf..5a9fc3503 100644 --- a/google/oauth2/_client.py +++ b/google/oauth2/_client.py @@ -325,7 +325,7 @@ def call_iam_generate_id_token_endpoint( signer_email, audience, access_token, - universe_domain, + universe_domain=credentials.DEFAULT_UNIVERSE_DOMAIN, ): """Call iam.generateIdToken endpoint to get ID token.