peburrows / goth

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

Proposed additional ways to infer project ID from the environment #21

Closed dazuma closed 6 years ago

dazuma commented 7 years ago

Currently we infer project ID only from the Compute Engine metadata server (if available).

While I don't think there's a documented recipe for how to infer the project, the way that we have for application default credentials, there are some common practices being used (still somewhat inconsistently) by the auth libraries for other languages:

I can provide a pull request if you agree with these.