@@ -18,34 +18,12 @@ Setup
1818Authentication
1919++++++++++++++
2020
21- Authentication is typically done through `Application Default Credentials `_,
22- which means you do not have to change the code to authenticate as long as
23- your environment has credentials. You have a few options for setting up
24- authentication:
21+ This sample requires you to have authentication setup. Refer to the
22+ `Authentication Getting Started Guide `_ for instructions on setting up
23+ credentials for applications.
2524
26- #. When running locally, use the `Google Cloud SDK `_
27-
28- .. code-block :: bash
29-
30- gcloud auth application-default login
31-
32-
33- #. When running on App Engine or Compute Engine, credentials are already
34- set-up. However, you may need to configure your Compute Engine instance
35- with `additional scopes `_.
36-
37- #. You can create a `Service Account key file `_. This file can be used to
38- authenticate to Google Cloud Platform services from any environment. To use
39- the file, set the ``GOOGLE_APPLICATION_CREDENTIALS `` environment variable to
40- the path to the key file, for example:
41-
42- .. code-block :: bash
43-
44- export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
45-
46- .. _Application Default Credentials : https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
47- .. _additional scopes : https://cloud.google.com/compute/docs/authentication#using
48- .. _Service Account key file : https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
25+ .. _Authentication Getting Started Guide :
26+ https://cloud.google.com/docs/authentication/getting-started
4927
5028Install Dependencies
5129++++++++++++++++++++
0 commit comments