Public Member Functions | |
def | authorize_redirect |
Private Member Functions | |
def | _oauth_request_token_url |
Abstract implementation of OAuth 2.0. See `FacebookGraphMixin` below for an example implementation. Class attributes: * ``_OAUTH_AUTHORIZE_URL``: The service's authorization url. * ``_OAUTH_ACCESS_TOKEN_URL``: The service's access token url.
def tornado.auth.OAuth2Mixin._oauth_request_token_url | ( | self, | |
redirect_uri = None , |
|||
client_id = None , |
|||
client_secret = None , |
|||
code = None , |
|||
extra_params = None |
|||
) | [private] |
def tornado.auth.OAuth2Mixin.authorize_redirect | ( | self, | |
redirect_uri = None , |
|||
client_id = None , |
|||
client_secret = None , |
|||
extra_params = None , |
|||
callback = None , |
|||
scope = None , |
|||
response_type = "code" |
|||
) |
Redirects the user to obtain OAuth authorization for this service. Some providers require that you register a redirect URL with your application instead of passing one via this method. You should call this method to log the user in, and then call ``get_authenticated_user`` in the handler for your redirect URL to complete the authorization process. .. 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`.