2011-06-11 21:48:46 +00:00
|
|
|
``tornado.auth`` --- Third-party login with OpenID and OAuth
|
|
|
|
============================================================
|
2011-06-09 06:58:58 +00:00
|
|
|
|
|
|
|
.. 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
|
|
|
|
2011-06-19 17:45:35 +00:00
|
|
|
.. autoclass:: GoogleMixin
|
|
|
|
:members:
|
|
|
|
|
|
|
|
Facebook
|
|
|
|
--------
|
|
|
|
|
2013-03-16 02:16:37 +00:00
|
|
|
.. autoclass:: FacebookGraphMixin
|
|
|
|
:members:
|
|
|
|
|
2011-06-19 17:45:35 +00:00
|
|
|
.. autoclass:: FacebookMixin
|
|
|
|
:members:
|
|
|
|
|
2013-03-16 02:16:37 +00:00
|
|
|
Twitter
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. autoclass:: TwitterMixin
|
2011-06-19 17:45:35 +00:00
|
|
|
:members:
|
2013-03-16 02:16:37 +00:00
|
|
|
|
|
|
|
FriendFeed
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. autoclass:: FriendFeedMixin
|
|
|
|
:members:
|
|
|
|
|