Questions tagged [django-socialauth]

python-socialauth is the new port from django-social-auth to a more general solution for social authentication/authorization.

django-socialauth is a social authentication/authorization mechanism for Django projects. It provides user registration, login and connection using social sites credentials. The following providers are available:

Google OpenID Google OAuth Google OAuth2 Yahoo OpenID OpenID (like MyOpenID) Twitter OAuth Facebook OAuth LiveJournal OpenID Orkut OAuth LinkedIn OAuth

The projects code is hosted @ https://github.com/omab/django-social-auth

Documentation is available @ http://django-social-auth.readthedocs.org/en/latest/index.html

A Demo is available @ http://social.matiasaguirre.net/

414 questions
24
votes
3 answers

Connect with Facebook in Django Rest Framework + Django Social Auth

I'm using Django Social Auth for connect with Facebook issue and it works perfect. I have developed an API for my Django app with Django Rest Framework. But I'm confused about using Django Social Auth with Django Rest Framework for iOS devices. I…
TheNone
  • 5,684
  • 13
  • 57
  • 98
20
votes
1 answer

django-social-auth django-registration and django-profiles -- together

Has anyone used django-social-auth, django-registration and django-profiles together. Do they work well together? I have established social-auth but I read somewhere that django-allauth is better. Should I switch over to that? Please…
Sachin
  • 3,672
  • 9
  • 55
  • 96
20
votes
4 answers

How can I handle Exceptions raised by dango-social-auth?

In django-social-auth, there are a few instances where a back-end will raise a ValueError (such as when a user cancels a login request or if a user tries to associate with an account that's already been associated with another User). If a User runs…
Brad Montgomery
  • 2,621
  • 1
  • 24
  • 24
19
votes
5 answers

AuthAlreadyAssociated Exception in Django Social Auth

After I create a user using say Facebook(let's say fbuser) or Google(googleuser). If I create another user through the normal django admin(normaluser), and try logging again using Facebook or Google while third user(normaluser) is logged in, it…
ramdaz
  • 1,761
  • 1
  • 20
  • 43
17
votes
1 answer

is not JSON serializable - django social auth Facebook login

I'm trying to login with Facebook with Django-Social-Auth But I'm getting this error: TypeError at /complete/facebook/ datetime.datetime(2014, 4, 25, 22, 20, 14, 665216, tzinfo=) is not JSON serializable This is my login template:
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
15
votes
3 answers

How to get rid of the #_=_ in the facebook redirect of django-social-auth?

django-social-auth redirects me to /mypage#_=_ when using the the Facebook backend. As I am working with jquery mobile on the front end, I can not accept that. I found: https://developers.facebook.com/blog/post/552/ on the facebook developers…
wzr1337
  • 3,609
  • 5
  • 30
  • 53
14
votes
4 answers

Create user notification system in Django

I am adding a system to leave "notifications" for users that can be displayed the next time they log in. I created a simple Notification class in the models.py file. I have this UserInfo class (in the same models.py) to add on some attributes to…
gohnjanotis
  • 6,513
  • 6
  • 37
  • 57
12
votes
4 answers

python-social-auth not getting correct Google OAuth2 details

I want to login a user using the python-social-auth functionality for Google Plus signin in Django. When logging in from my website, everything works fine and the correct details are added to the database. However, I want to authenticate from my…
12
votes
1 answer

How can I use Django Social Auth to connect with Twitter?

I'm trying to use the Django Social Auth package to connect with Twitter, but I'm having difficulty understanding how exactly to do this as I can't find any examples. I am assuming that Django Social Auth is the best package to use for this…
djq
  • 14,810
  • 45
  • 122
  • 157
11
votes
2 answers

django social-auth multiple account association

I am using django social-auth (http://django-social-auth.readthedocs.org/en/latest/index.html) and trying to create a user profile where the user can associate multiple accounts (like here on Stackoverflow). Currently I am at the point where single…
Asterisk
  • 3,534
  • 2
  • 34
  • 53
10
votes
4 answers

Django, Djoser social auth : State could not be found in server-side session data. status_code 400

I'm implementing an auth system with django and react. The two app run respectively on port 8000, 3000. I have implemented the authentication system using the Djoser package. This package uses some dependencies social_core and social_django.…
10
votes
2 answers

unhashable type when redirecting back to the website using python-social-auth in Django

I'm trying to add a social media authentication to a website using Social-auth-app-django. So I've created different apps for the most popular social media websites (Facebook, Twitter, Google+), and have set the callback url there. But I'm coming…
Hakim
  • 3,225
  • 5
  • 37
  • 75
10
votes
3 answers

Save facebook profile picture in model using python-social-auth

How to store the get Facebook profile picture of a user while logging in through Facebook and saving it in my userprofile model. I found this link which says how to do so using django-social-auth, https://gist.github.com/kalamhavij/1662930. but…
Salma Hamed
  • 2,000
  • 4
  • 26
  • 45
10
votes
1 answer

How to have unique emails with Python social auth

I'm using Python Social Auth (Django) with Google and Facebook and it creates different users with the same email. How do I fix that? If I log first with Google, logout, and then with Facebook, it must just associate the accounts and not create.
Juliana
  • 578
  • 7
  • 18
9
votes
3 answers

How not to set the user's email address in django social-auth

I have django social-auth installed (from omab) and the users have an email address in database that is the one I want to keep but when the users log in from facebook using social-auth, their email gets replaced by the one they have in their…
Bastian
  • 5,625
  • 10
  • 44
  • 68
1
2 3
27 28