Skip to content

Instantly share code, notes, and snippets.

@0xjac
Created May 13, 2015 08:49
Show Gist options
  • Save 0xjac/6217c395e640fe7c26c1 to your computer and use it in GitHub Desktop.
Save 0xjac/6217c395e640fe7c26c1 to your computer and use it in GitHub Desktop.

Revisions

  1. 0xjac renamed this gist May 13, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. 0xjac created this gist May 13, 2015.
    26 changes: 26 additions & 0 deletions token_tb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    Traceback (most recent call last):
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
    File "/home/jd/Documents/code/indico-mobile/indicomobile/views/authentication.py", line 41, in oauth_authorized
    response = indico.authorized_response()
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask_oauthlib/contrib/client/application.py", line 197, in authorized_response
    response = oauth.parse_authorization_response(request.url)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/requests_oauthlib/oauth1_session.py", line 321, in parse_authorization_response
    self._populate_attributes(token)
    File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/requests_oauthlib/oauth1_session.py", line 330, in _populate_attributes
    token,
    TokenMissing: Response does not contain a token: {u'oauth_verifier': u'dAcEEenXlLp0RwmdQ1tfdcN5eh6ocUqwDDLv0xxR', u'next': u'http://localhost:5000/'}