Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Login with twitter account that hasn't signed in #97

Open
prooffd opened this Issue Jul 25, 2011 · 1 comment

Comments

Projects
None yet
2 participants

prooffd commented Jul 25, 2011

At least on my end the steps to reproduce is:

  1. Log into twitter
  2. Register on my site using twitter
  3. Log out of my site
  4. Log out of twitter
  5. Log into my site using twitter
  6. Twitter gives a prompt to both login and authorize and I authorize

When twitter sends me back to my site I get:

No access token saved for "twitter.com".

Environment:


Request Method: GET
Request URL: http://REDACTED.com/accounts/twitter/

Django Version: 1.3
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'socialregistration',
 'registration',
 'uni_form',
 'compressor',
 'south',
 'filetransfers',
 'debug_toolbar',
 'pagination',
 'djcelery',
 'dajaxice',
 'accounts',
 'documents',
 'spam_reports',
 'comments',
 'karma']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'socialregistration.middleware.FacebookMiddleware',
 'pagination.middleware.PaginationMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/mnt/bundles/port-8066/app_image/pyenv/src/django-socialregistration/socialregistration/views.py" in twitter
  194.     user_info = client.get_user_info()
File "/mnt/bundles/port-8066/app_image/pyenv/src/django-socialregistration/socialregistration/utils.py" in get_user_info
  344.         user = simplejson.loads(self.query(self.url))
File "/mnt/bundles/port-8066/app_image/pyenv/src/django-socialregistration/socialregistration/utils.py" in query
  320.         at = self.access_token
File "/mnt/bundles/port-8066/app_image/pyenv/src/django-socialregistration/socialregistration/utils.py" in _get_at_from_session
  311.                 _('No access token saved for "%s".') % get_token_prefix(self.request_token_url))

Exception Type: OAuthError at /accounts/twitter/
Exception Value: No access token saved for "twitter.com".
Owner

flashingpumpkin commented Jul 30, 2011

Will have a look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment