Public Member Functions | Private Member Functions
tornado.auth.OpenIdMixin Class Reference
Inheritance diagram for tornado.auth.OpenIdMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def authenticate_redirect
def get_auth_http_client
def get_authenticated_user

Private Member Functions

def _on_authentication_verified
def _openid_args

Detailed Description

Abstract implementation of OpenID and Attribute Exchange.

See `GoogleMixin` below for a customized example (which also
includes OAuth support).

Class attributes:

* ``_OPENID_ENDPOINT``: the identity provider's URI.

Definition at line 138 of file auth.py.


Member Function Documentation

def tornado.auth.OpenIdMixin._on_authentication_verified (   self,
  future,
  response 
) [private]

Definition at line 243 of file auth.py.

def tornado.auth.OpenIdMixin._openid_args (   self,
  callback_uri,
  ax_attrs = [],
  oauth_scope = None 
) [private]

Definition at line 195 of file auth.py.

def tornado.auth.OpenIdMixin.authenticate_redirect (   self,
  callback_uri = None,
  ax_attrs = ["name",
  email,
  language,
  username,
  callback = None 
)
Redirects to the authentication URL for this service.

After authentication, the service will redirect back to the given
callback URI with additional parameters including ``openid.mode``.

We request the given attributes for the authenticated user by
default (name, email, language, and username). If you don't need
all those attributes for your app, you can request fewer with
the ax_attrs keyword argument.

.. versionchanged:: 3.1
   Returns a `.Future` and takes an optional callback.  These are
   not strictly necessary as this method is synchronous,
   but they are supplied for consistency with
   `OAuthMixin.authorize_redirect`.

Definition at line 149 of file auth.py.

Returns the `.AsyncHTTPClient` instance to be used for auth requests.

May be overridden by subclasses to use an HTTP client other than
the default.

Definition at line 303 of file auth.py.

def tornado.auth.OpenIdMixin.get_authenticated_user (   self,
  callback,
  http_client = None 
)
Fetches the authenticated user data upon redirect.

This method should be called by the handler that receives the
redirect from the `authenticate_redirect()` method (which is
often the same as the one that calls it; in that case you would
call `get_authenticated_user` if the ``openid.mode`` parameter
is present and `authenticate_redirect` if it is not).

The result of this method will generally be used to set a cookie.

Definition at line 174 of file auth.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40