Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_async returns non-async credentials for GCE and GAE #1633

Open
Ark-kun opened this issue Nov 14, 2024 · 0 comments
Open

default_async returns non-async credentials for GCE and GAE #1633

Ark-kun opened this issue Nov 14, 2024 · 0 comments

Comments

@Ark-kun
Copy link

Ark-kun commented Nov 14, 2024

default_async returns non-async credentials for GCE and GAE

Environment details

  • OS: Linux
  • Python version: 3.9
  • pip version:
  • google-auth version:

Steps to reproduce

Run the following code from GCE or Colab

from google.auth import _default_async
print(_default_async.default_async()[0])

The resulting credentials are non-async

<google.auth.compute_engine.credentials.Credentials at 0x7e24d031ebc0>

The issue does not occur when running outside GCE.

It's easy to see that for GCE default_async just calls the method from default: https://github.com/googleapis/google-auth-library-python/blob/bfab59288fb5e4a9d86f5fff55307a72a0b86e47/google/auth/_default_async.py#L162..L172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant