Comments (6)
Yes, /associate/backend-name/ is the correct path to trigger account associations, this is only for logged in users. Which error are you getting?
Matías
Edit: fix path broken by github markup
from django-social-auth.
These are the errors:
Traceback (most recent call last):
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 273, in call
response = self.get_response(request)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 66, in associate
return auth_process(request, backend, complete_url)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 93, in auth_process
redirect = reverse(complete_url_name, args=(backend,))
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 391, in reverse
_args, *_kwargs)))
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 337, in reverse
"arguments '%s' not found." % (lookup_view_s, args, kwargs))
NoReverseMatch: Reverse for 'association_complete' with arguments '(u'google',)' and keyword arguments '{}' not found.
from django-social-auth.
Seems that you have this setting:
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'association_complete'
Default django-social-auth name for this view is associate_complete, not association_complete.
Are you trying to override the association view? If that is your case, then seems that you have a problem with your URLs setup and you aren't including the the module with such URL, or that you don't give it a name.
If this is not the case, then remove the setting, the app will use associate_complete by default.
from django-social-auth.
I have removed the:
SOCIAL_AUTH_COMPLETE_URL_NAME = 'social:complete'
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'social:association_complete'
but the errors are the same:
Traceback (most recent call last):
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 273, in call
response = self.get_response(request)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 66, in associate
return auth_process(request, backend, complete_url)
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/social_auth/views.py", line 93, in auth_process
redirect = reverse(complete_url_name, args=(backend,))
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 391, in reverse
_args, *_kwargs)))
File "/Volumes/duc/Sites/django/met_env/lib/python2.6/site-packages/django/core/urlresolvers.py", line 337, in reverse
"arguments '%s' not found." % (lookup_view_s, args, kwargs))
NoReverseMatch: Reverse for 'associate_complete' with arguments '(u'twitter',)' and keyword arguments '{}' not found.
Where i mistake?
My Urls.py regarding social_auth is:
url(r'^accounts/', include('social_auth.urls', namespace='social')),
Thanks for the support omab.
from django-social-auth.
Remove the namespace please, I've ditched it several changesets ago because they weren't really useful and were confusing instead.
from django-social-auth.
Thanks brother! It seems to work well ;-)
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.