I have a twitter account handler and I keep getting the error "Missing OAuth request token cookie"
Here is the code for my account handler:
class AccountTwitterHandler(BaseHandler, tornado.auth.TwitterMixin):
@tornado.web.asynchronous
def get(self):
if self.get_argument("oauth_token", None):
self.get_authenticated_user(self.async_callback(self._on_auth))
return
self.authorize_redirect()
def _on_auth(self, user):
if not user:
raise tornado.web.HTTPError(500, "Twitter auth failed")
self.write(user)
self.finish()
I've looked through the tornado code and I don't understand why this error appears.