Comments (5)
It's still reproducible?
from django-social-auth.
Yes.
Environment:
Request Method: GET
Request URL: http://localhost:8000/login/twitter/
Django Version: 1.2.4
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.flatpages',
'django.contrib.gis',
'social_auth',
'main']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
Traceback:
File "/data/vhost/newsblocks/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
-
File "/data/vhost/newsblocks/lib/python2.6/site-packages/social_auth/views.py" in auth
response = callback(request, _callback_args, *_callback_kwargs)
-
File "/data/vhost/newsblocks/lib/python2.6/site-packages/social_auth/views.py" in auth_process
return auth_process(request, backend, complete_url, redirect)
-
File "/data/vhost/newsblocks/lib/python2.6/site-packages/social_auth/backends/init.py" in auth_url
return HttpResponseRedirect(backend.auth_url())
-
File "/data/vhost/newsblocks/lib/python2.6/site-packages/social_auth/backends/init.py" in unauthorized_token
token = self.unauthorized_token()
-
File "/data/vhost/newsblocks/lib/python2.6/site-packages/oauth/oauth.py" in from_string
return OAuthToken.from_string(response)
-
key = params['oauth_token'][0]
Exception Type: KeyError at /login/twitter/
Exception Value: oauth_token
from django-social-auth.
The only way I could reproduce this one is disabling TWITTER_CONSUMER_KEY or TWITTER_CONSUMER_SECRET, check your settings please.
Take a look to Twitter section on README.
from django-social-auth.
After much digging I tracking it down to a bug on the Twitter app registration page.
If you do not specify a Callback URL then Twitter changes the type of app from 'Browser' to 'Client' which then produced the result reported above.
I have reported this to Twitter, but it might be worth amending the readme in the meantime.
from django-social-auth.
Doc updated in 795f0c2
from django-social-auth.
Related Issues (20)
- Facebook: Authentication process canceled
- link to documentation does not work HOT 1
- 401 Client Error: Unauthorized for url: https://oauth.vk.com/access_token HOT 4
- KeyError at /complete/facebook/ ---- 'access_token' HOT 5
- Read The Docs 404 HOT 2
- Cannot resolve keyword 'response' into field. Choices are:
- Documentation link is broken HOT 1
- LinkedIn v2 update
- Manual Create User with access Token HOT 1
- Link to documentation is broken HOT 4
- Disable firstname, lastname field
- Documentation link leads to ReadTheDocs template
- social_core.exceptions.AuthFailed: Authentication failed: SAML login failed: ['invalid_response'] HOT 1
- Token POST request hangs with ASGI
- create_user is not getting called HOT 1
- pyhton3 to python
- It is not compatible in Django version 4 or later
- What about Azure AD?
- linkedin complete login step is stuck
- Is it possible to support two different Google Auth app ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-social-auth.