peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
284 stars 108 forks source link

Add another fallback to use the quota project from a credentials file #81

Closed lytedev closed 3 years ago

lytedev commented 3 years ago

This is to support use cases where a developer has used gcloud auth application-default login and gcloud auth application-default set-quota-project $PROJECT_ID and expects applications to use those configuration values as a result.

wojtekmach commented 3 years ago

Thank you for the PR!

Note we're moving forward with the Goth redesign which currently does not have support for ADC (if we would, it'd most likely be an explicit configuration that says we're using ADC, similar to https://github.com/peburrows/goth/pull/85), however I think this is a nice addition for people that'd be using the "legacy" API. Thanks again!