Remove oauthlib modules from documentation, update user guide (#139)
diff --git a/docs/reference/google.oauth2.flow.rst b/docs/reference/google.oauth2.flow.rst
deleted file mode 100644
index bae5408..0000000
--- 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 c687490..0000000
--- 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 4dd1ebd..adb9403 100644
--- a/docs/reference/google.oauth2.rst
+++ b/docs/reference/google.oauth2.rst
@@ -12,8 +12,6 @@
.. 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 f4cf830..76740c7 100644
--- a/docs/user-guide.rst
+++ b/docs/user-guide.rst
@@ -157,24 +157,26 @@
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/