Skip to content

Commit

Permalink
Give more exposure to google-auth in PubSub docs
Browse files Browse the repository at this point in the history
The link to the library is moved to the first paragraph of the
Authentication section for better visibility.
  • Loading branch information
plamut committed Jun 21, 2019
1 parent eb36c30 commit a4f789f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pubsub/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ Authentication
^^^^^^^^^^^^^^

It is possible to specify the authentication method to use with the Pub/Sub
clients. This can be done by providing an explicit `Credentials`_ instance from
the `google-auth`_ library.
clients. This can be done by providing an explicit `Credentials`_ instance. Support
for various authentication methods is available from the `google-auth`_ library.

For example, to use JSON Web Tokens, provide a `jwt.Credentials`_ instance:

Expand All @@ -184,9 +184,6 @@ For example, to use JSON Web Tokens, provide a `jwt.Credentials`_ instance:
publisher = pubsub_v1.PublisherClient(credentials=credentials)
subscriber = pubsub_v1.SubscriberClient(credentials=credentials)
Check the `google-auth`_ library documentation for the list of supported
authentication methods.

.. _Credentials: https://google-auth.readthedocs.io/en/latest/reference/google.auth.credentials.html#google.auth.credentials.Credentials
.. _google-auth: https://google-auth.readthedocs.io/en/latest/index.html
.. _jwt.Credentials: https://google-auth.readthedocs.io/en/latest/reference/google.auth.jwt.html#google.auth.jwt.Credentials

0 comments on commit a4f789f

Please sign in to comment.