diff --git a/docs/reference/google.oauth2.flow.rst b/docs/reference/google.oauth2.flow.rst deleted file mode 100644 index bae54084b..000000000 --- a/docs/reference/google.oauth2.flow.rst +++ /dev/null @@ -1,7 +0,0 @@ -google.oauth2.flow module -========================= - -.. automodule:: google.oauth2.flow - :members: - :inherited-members: - :show-inheritance: diff --git a/docs/reference/google.oauth2.oauthlib.rst b/docs/reference/google.oauth2.oauthlib.rst deleted file mode 100644 index c687490a4..000000000 --- a/docs/reference/google.oauth2.oauthlib.rst +++ /dev/null @@ -1,7 +0,0 @@ -google.oauth2.oauthlib module -============================= - -.. automodule:: google.oauth2.oauthlib - :members: - :inherited-members: - :show-inheritance: diff --git a/docs/reference/google.oauth2.rst b/docs/reference/google.oauth2.rst index 4dd1ebd97..adb9403ef 100644 --- a/docs/reference/google.oauth2.rst +++ b/docs/reference/google.oauth2.rst @@ -12,8 +12,6 @@ Submodules .. toctree:: google.oauth2.credentials - google.oauth2.flow google.oauth2.id_token - google.oauth2.oauthlib google.oauth2.service_account diff --git a/docs/user-guide.rst b/docs/user-guide.rst index f4cf83097..76740c7d5 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -157,24 +157,26 @@ URI to allow the credentials to be automatically refreshed:: client_secret='client_secret') -This library has some helpers for integrating with `requests-oauthlib`_ to -provide support for obtaining user credentials. You can use -:func:`google.oauth2.oauthlib.credentials_from_session` to obtain +There is a separate library, `google-auth-oauthlib`_, that has some helpers +for integrating with `requests-oauthlib`_ to provide support for obtaining +user credentials. You can use +:func:`google_auth_oauthlib.helpers.credentials_from_session` to obtain :class:`google.oauth2.credentials.Credentials` from a :class:`requests_oauthlib.OAuth2Session` as above:: - import google.oauth2.oauthlib + from google_auth_oauthlib.helpers import credentials_from_session - google_auth_credentials = google.oauth2.oauthlib.credentials_from_session( - oauth2session) + google_auth_credentials = credentials_from_session(oauth2session) -You can also use :class:`google.oauth2.flow.Flow` to perform the OAuth 2.0 -Authorization Grant Flow to obtain credentials using `requests-oauthlib`_. +You can also use :class:`google_auth_oauthlib.flow.Flow` to perform the OAuth +2.0 Authorization Grant Flow to obtain credentials using `requests-oauthlib`_. .. _OAuth 2.0: https://developers.google.com/identity/protocols/OAuth2 .. _oauthlib: https://oauthlib.readthedocs.io/en/latest/ +.. _google-auth-oauthlib: + https://pypi.python.org/pypi/google-auth-oauthlib .. _requests-oauthlib: https://requests-oauthlib.readthedocs.io/en/latest/