googleapis / google-auth-library-ruby

Google Auth Library for Ruby
Apache License 2.0
471 stars 254 forks source link

feat: Use google-cloud-env for more robust Metadata Service access #459

Closed dazuma closed 11 months ago

dazuma commented 1 year ago

This is a prerequisite for proper universe_domain support. It removes the code that makes direct calls to the Metadata Server (to determine GCE residence and to fetch Metadata-provided access tokens), and instead delegates to the more robust code in the google-cloud-env 2.0 gem.

Also drops support for Ruby 2.6 since google-cloud-env 2.0 also drops Ruby 2.6.

Also closes #444.