django-socialregistration
django-socialregistration copied to clipboard
Login with twitter account that hasn't signed in
At least on my end the steps to reproduce is:
- Log into twitter
- Register on my site using twitter
- Log out of my site
- Log out of twitter
- Log into my site using twitter
- 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".
Will have a look at this