

def _on_access_token(self, future, response):
    if response.error:
        future.set_exception(AuthError('Could not fetch access token'))
        return
    access_token = _oauth_parse_response(response.body)
    self._oauth_get_user_future(access_token).add_done_callback(self.async_callback(self._on_oauth_get_user, access_token, future))

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py OAuthMixin._on_access_token/original