elixir-google-api icon indicating copy to clipboard operation
elixir-google-api copied to clipboard

How can I leverage the default service account?

Open Adzz opened this issue 4 years ago • 2 comments

In the app engine Docs it says things like:

Cloud Client Libraries will automatically find and use the service account credentials.

Is that true for this environment? I need to be able to leverage the default service account in a Flex env GAE app to make a query to an API on app start up.

Adzz avatar Mar 19 '20 13:03 Adzz

The Elixir libraries delegate to the Goth library for credential handling. Goth understands default account credentials (including those in the App Engine flexible environment) and will fetch them by default. See the "Making a Request" section in the readme of this repo for an example of using Goth to obtain credentials.

dazuma avatar Mar 29 '20 02:03 dazuma

Strange I couldn't get it to work at all. If I don't provide config goth seems to just error on start up.

Adzz avatar Apr 01 '20 18:04 Adzz