Skip to content

Commit f647622

Browse files
author
Jon Wayne Parrott
authored
Update all generated readme auth instructions [(googleapis#1121)](GoogleCloudPlatform/python-docs-samples#1121)
Change-Id: I03b5eaef8b17ac3dc3c0339fd2c7447bd3e11bd2
1 parent 64290b3 commit f647622

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

samples/hello_happybase/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,12 @@ Setup
2424
Authentication
2525
++++++++++++++
2626

27-
Authentication is typically done through `Application Default Credentials`_,
28-
which means you do not have to change the code to authenticate as long as
29-
your environment has credentials. You have a few options for setting up
30-
authentication:
27+
This sample requires you to have authentication setup. Refer to the
28+
`Authentication Getting Started Guide`_ for instructions on setting up
29+
credentials for applications.
3130

32-
#. When running locally, use the `Google Cloud SDK`_
33-
34-
.. code-block:: bash
35-
36-
gcloud auth application-default login
37-
38-
39-
#. When running on App Engine or Compute Engine, credentials are already
40-
set-up. However, you may need to configure your Compute Engine instance
41-
with `additional scopes`_.
42-
43-
#. You can create a `Service Account key file`_. This file can be used to
44-
authenticate to Google Cloud Platform services from any environment. To use
45-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
46-
the path to the key file, for example:
47-
48-
.. code-block:: bash
49-
50-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
51-
52-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
53-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
54-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
31+
.. _Authentication Getting Started Guide:
32+
https://cloud.google.com/docs/authentication/getting-started
5533

5634
Install Dependencies
5735
++++++++++++++++++++

0 commit comments

Comments
 (0)