diff --git a/google/oauth2/id_token.py b/google/oauth2/id_token.py index 2b1abec2b..e5dda508d 100644 --- a/google/oauth2/id_token.py +++ b/google/oauth2/id_token.py @@ -62,7 +62,6 @@ from google.auth import environment_vars from google.auth import exceptions from google.auth import jwt -import google.auth.transport.requests # The URL that provides public certificates for verifying ID tokens issued @@ -282,6 +281,8 @@ def fetch_id_token_credentials(audience, request=None): # Create a request object if not provided. if not request: + import google.auth.transport.requests + request = google.auth.transport.requests.Request() if _metadata.ping(request): diff --git a/system_tests/secrets.tar.enc b/system_tests/secrets.tar.enc index bcb6dec21..61417809c 100644 Binary files a/system_tests/secrets.tar.enc and b/system_tests/secrets.tar.enc differ