actions-on-google / assistant-conversation-testing-nodejs

Assistant conversation testing library
Apache License 2.0
21 stars 16 forks source link

Is there a way to use other authentication method apart from service account json? #16

Closed kkocel closed 2 years ago

kkocel commented 3 years ago

Using service account json is a bit problematic since it requires storing json file in the repository in order to make tests work out of box. Maybe there could be other way to authenticate - eg. api key?

Fleker commented 3 years ago

You can embed the GOOGLE_APPLICATION_CREDENTIALS in an environment variable and have each person setup their own locally by putting the path in .gitignore.

There's plenty of documentation on the best way to secure credentials depending on your use-case. That may be a good place to learn more.