Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook auth creates new user despite having an an existing user #659

Closed
xthepoet opened this issue Apr 4, 2013 · 1 comment
Closed

Comments

@xthepoet
Copy link

xthepoet commented Apr 4, 2013

I am using an older version 0.7.20+ (prior to the removal of signals). This is the exact revision: https://github.com/omab/django-social-auth/tree/42e3334ef805eb50bc0429b6faf6f7b99c1e47a3
I am also using Django 1.4.3.

Facebook auth works great the first time and creates a new custom user. It works fine logging in and out for that same session.

However, when a user comes back a few days later and tries to do Facebook log-in again, social-auth creates a new user and updates the social_auth_usersocialauth table entry to point to this new user rather than the previously created user.

Here's my settings in case it's relevant:
CUSTOM_USER_MODEL = 'customapp.User'
SOCIAL_AUTH_USER_MODEL = 'customapp.User'
SOCIAL_AUTH_CHANGE_SIGNAL_ONLY = True

@atodorov
Copy link
Contributor

Did you manage to fix your problem ? I'm seeing a similar issue and the root cause is that the auth pipeline fails before creating a UserSocialAuth object for some reason. The next time user tries to login, they receive a new username.

I'm still trying to debug why athentication fails sometimes.

@omab omab closed this as completed Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants