

@return_future
def authorize_redirect(self, redirect_uri=None, client_id=None, client_secret=None, extra_params=None, callback=None):
    'Redirects the user to obtain OAuth authorization for this service.\n\n        Some providers require that you register a redirect URL with\n        your application instead of passing one via this method. You\n        should call this method to log the user in, and then call\n        ``get_authenticated_user`` in the handler for your\n        redirect URL to complete the authorization process.\n\n        .. versionchanged:: 3.1\n           Returns a `.Future` and takes an optional callback.  These are\n           not strictly necessary as this method is synchronous,\n           but they are supplied for consistency with\n           `OAuthMixin.authorize_redirect`.\n        '
    args = {
        'redirect_uri': redirect_uri,
        'client_id': client_id,
    }
    if extra_params:
        args.update(extra_params)
    self.redirect(url_concat(self._OAUTH_AUTHORIZE_URL, args))
    callback()

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py OAuth2Mixin.authorize_redirect/original