django-socialregistration icon indicating copy to clipboard operation
django-socialregistration copied to clipboard

Login with twitter account that hasn't signed in

Open prooffd opened this issue 14 years ago • 1 comments

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".

prooffd avatar Jul 25 '11 18:07 prooffd

Will have a look at this

flashingpumpkin avatar Jul 30 '11 13:07 flashingpumpkin