Skip to content

Commit 5e86158

Browse files
ricardoluiJon Wayne Parrott
authored andcommitted
Show how to create credentials object (#3454)
1 parent c82cd6b commit 5e86158

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

docs/google-cloud-auth.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,19 @@ However, you may want to be explicit because
8787
from different projects
8888

8989
In these situations, you can create an explicit
90-
:class:`~google.auth.credentials.Credentials` object suited to your
91-
environment. After creation, you can pass it directly to a
92-
:class:`Client <google.cloud.client.Client>`:
90+
:class:`~google.auth.credentials.Credentials` object suited to your environment.
91+
After creation, you can pass it directly to a :class:`Client <google.cloud.client.Client>`:
9392

9493
.. code:: python
9594
9695
client = Client(credentials=credentials)
9796
97+
.. tip::
98+
To create a credentials object, follow the `google-auth-guide`_.
99+
100+
.. _google-auth-guide: https://google-auth.readthedocs.io/en/latest/user-guide.html#service-account-private-key-files
101+
102+
98103
Google App Engine Environment
99104
-----------------------------
100105

0 commit comments

Comments
 (0)