Conversation
| - Support for various transports, including | ||
| :mod:`Requests <google.auth.transport.requests>`, | ||
| :mod:`urllib3 <google.auth.transport.urllib3>`, and | ||
| :mod:`gRPC <google.auth.transport.grpc>`. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
docs/index.rst
Outdated
| Installing | ||
| ---------- | ||
|
|
||
| google-auth can be installed with `pip <https://pip.pypa.io>`_:: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
docs/index.rst
Outdated
|
|
||
| google-auth can be installed with `pip <https://pip.pypa.io>`_:: | ||
|
|
||
| $ pip install google-auth |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| User Guide | ||
| ========== | ||
|
|
||
| .. currentmodule:: google.auth |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
docs/user-guide.rst
Outdated
| user accounts are obtained by asking the user to authorize access to their data. | ||
| These types of credentials are used in cases where your application needs access | ||
| to a user's data in another service, such as accessing a user's documents in | ||
| Google Drive. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| User credentials are typically obtained via `OAuth 2.0`_. This library does not | ||
| provide any support for *obtaining* user credentials, however, you can use user | ||
| credentials with this library. You can use libraries such as `oauthlib`_ or | ||
| `oauth2client`_ to obtain the access token. After you have an access token, you |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
docs/user-guide.rst
Outdated
| .. _Requests: http://docs.python-requests.org/en/master/ | ||
| .. _Session: http://docs.python-requests.org/en/master/user/advanced/#session-objects | ||
|
|
||
| Urllib3 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| import google.auth.transport.grpc | ||
| import google.auth.transport.requests | ||
|
|
||
| http_request = google.auth.transport.requests.Request() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| credentials, 'pubsub.googleapis.com:443', http_request) | ||
|
|
||
| .. note:: Even though gRPC is its own transport, you still need to use one of | ||
| the other HTTP transports with gRPC. The reason is that most credential |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| ssl_credentials, google_auth_credentials) | ||
|
|
||
| channel = grpc.secure_channel( | ||
| 'pubsub.googleapis.com:443', composite_credentials) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
LGTM |
These are staged here: http://temp.theadora.io/google-auth/index.html
Resolves #44.