elixir-google-api
elixir-google-api copied to clipboard
How can I leverage the default service account?
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.
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.
Strange I couldn't get it to work at all. If I don't provide config goth seems to just error on start up.