-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New to Google Cloud Platform; running the sample gives auth error? #329
Comments
You need to authenticate with an account (either a standard Google user account, or a Google Cloud Platform service account). Does this part of that page help? |
Yes that seems to be the important part; thanks. Could we update the documentation with two parts?
|
For 1), this repo has setup instructions for running samples. For 2) we don't want to encourage the use of API keys. The more secure authentication method is with a Service Account. The setup instructions in 1) should help with this. |
🤖 I have created a release \*beep\* \*boop\* --- ### [3.1.7](https://www.github.com/googleapis/nodejs-containeranalysis/compare/v3.1.6...v3.1.7) (2021-07-21) ### Bug Fixes * **deps:** google-gax v2.17.1 ([#326](https://www.github.com/googleapis/nodejs-containeranalysis/issues/326)) ([9e3f627](https://www.github.com/googleapis/nodejs-containeranalysis/commit/9e3f62734cecd16c7bae394665b50e7212f55158)) * Updating WORKSPACE files to use the newest version of the Typescript generator. ([#329](https://www.github.com/googleapis/nodejs-containeranalysis/issues/329)) ([5403fb4](https://www.github.com/googleapis/nodejs-containeranalysis/commit/5403fb42c84354d439ea8f6414b6b7e28c57f5c1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
I'm new to the Google Cloud Platform and was happy to find this repo of examples.
However, when I simply follow the instructions I seem to get an auth error?
Gives me
Which points to a page full of information about authentication, except the information I'm looking for: how can I simply pass an API key to the Speech client so it just simply works?
Could the documention be updated to instruct step-by-step how to do auth? Would it be possible to make that work something like
? Or is there a reason not to make it that easy?
Right now it feels like there are so many implicit assumptions and things around auth that scare newcomers away.
Would be happy to help in any way once I understand how it works.
The text was updated successfully, but these errors were encountered: