@@ -18,34 +18,12 @@ Setup
18
18
Authentication
19
19
++++++++++++++
20
20
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.
25
24
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
49
27
50
28
Install Dependencies
51
29
++++++++++++++++++++
0 commit comments