

@return_future
def authorize_redirect(self, callback_uri=None, extra_params=None, http_client=None, callback=None):
    'Redirects the user to obtain OAuth authorization for this service.\n\n        The ``callback_uri`` may be omitted if you have previously\n        registered a callback URI with the third-party service.  For\n        some sevices (including Friendfeed), you must use a\n        previously-registered callback URI and cannot specify a\n        callback via this method.\n\n        This method sets a cookie called ``_oauth_request_token`` which is\n        subsequently used (and cleared) in `get_authenticated_user` for\n        security purposes.\n\n        Note that this method is asynchronous, although it calls\n        `.RequestHandler.finish` for you so it may not be necessary\n        to pass a callback or use the `.Future` it returns.  However,\n        if this method is called from a function decorated with\n        `.gen.coroutine`, you must call it with ``yield`` to keep the\n        response from being closed prematurely.\n\n        .. versionchanged:: 3.1\n           Now returns a `.Future` and takes an optional callback, for\n           compatibility with `.gen.coroutine`.\n        '
    if (callback_uri and getattr(self, '_OAUTH_NO_CALLBACKS', False)):
        raise Exception('This service does not support oauth_callback')
    if (http_client is None):
        http_client = self.get_auth_http_client()
    if (getattr(self, '_OAUTH_VERSION', '1.0a') == '1.0a'):
        http_client.fetch(self._oauth_request_token_url(callback_uri=callback, extra_params=extra_params), self.async_callback(self._on_request_token, self._OAUTH_AUTHORIZE_URL, callback_uri, callback))
    else:
        http_client.fetch(self._oauth_request_token_url(), self.async_callback(self._on_request_token, self._OAUTH_AUTHORIZE_URL, callback_uri, callback))

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py OAuthMixin.authorize_redirect/VarMisuse@98/547 `callback_uri`->`callback`