def _on_request_token(self, authorize_url, callback_uri, response):
        if not response:
            logging.warning('Could not get OAuth request token.')
            self.abort(500)
        elif response.status_code < 200 or response.status_code >= 300:
            logging.warning('Bad OAuth response when requesting a token '
                '(%d): %s', response.status_code, response.content)
            self.abort(500)

        request_token = _oauth_parse_response(response.content)
        data = '|'.join([base64.b64encode(request_token['key']),
            base64.b64encode(request_token['secret'])])
        self.session_store.set_cookie('_oauth_request_token', data)
        args = dict(oauth_token=request_token['key'])

        if callback_uri:
            args['oauth_callback'] = urlparse.urljoin(
                self.request.url, callback_uri)

        return self.redirect(authorize_url + '?' + urllib.urlencode(args))
Sends the link to backup file located at erpnext/backups
dataset/ETHPy150Open moraes/tipfy/tipfy/auth/oauth.py/OAuthMixin._on_request_token--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/utils/backups.py/BackupGenerator.send_email