tornado/docs/auth.rst

50 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2011-06-11 21:48:46 +00:00
``tornado.auth`` --- Third-party login with OpenID and OAuth
============================================================
.. testsetup::
import tornado.auth, tornado.gen, tornado.web
.. automodule:: tornado.auth
2011-06-19 17:45:35 +00:00
Common protocols
----------------
2013-03-16 02:16:37 +00:00
These classes implement the OpenID and OAuth standards. They will
generally need to be subclassed to use them with any particular site.
The degree of customization required will vary, but in most cases
overridding the class attributes (which are named beginning with
underscores for historical reasons) should be sufficient.
2011-06-19 17:45:35 +00:00
.. autoclass:: OpenIdMixin
:members:
.. autoclass:: OAuthMixin
2013-03-16 02:16:37 +00:00
.. automethod:: authorize_redirect
.. automethod:: get_authenticated_user
.. automethod:: _oauth_consumer_token
.. automethod:: _oauth_get_user_future
.. automethod:: get_auth_http_client
2011-06-19 17:45:35 +00:00
2013-03-16 02:16:37 +00:00
.. autoclass:: OAuth2Mixin
2011-06-19 17:45:35 +00:00
:members:
Google
------
2013-03-16 02:16:37 +00:00
.. autoclass:: GoogleOAuth2Mixin
:members:
2011-06-19 17:45:35 +00:00
Facebook
--------
2013-03-16 02:16:37 +00:00
.. autoclass:: FacebookGraphMixin
:members:
Twitter
-------
.. autoclass:: TwitterMixin
2011-06-19 17:45:35 +00:00
:members: