You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The issue i have discovered is that when i create a createsuperuser with incomplete information (firstname , lastname... missing) the social user creation just override the superuser account with his missing information.
Step to follow :
create a superuser with the django command :
$ manage.py createsuperuser
use the graphQL social auth to create your user : mutation token_authentication { socialAuthToken(accessToken: "xxxxBiBQGGLzTUwZD", provider: "facebook") { social { id uid user { username email firstName lastName } provider extraData } token } }
Expected :
A User is created thanks to the social auth module.
So we should have 2 users in the database :
root user (created with the createsuperuser command)
user1 (created with the socialauthToken mutation)
Real Behavior :
The social user is not created.
The information from the social user override the missing root user information.
Root user information before user social connection :
The text was updated successfully, but these errors were encountered:
cyril36
changed the title
Social user create override other user account information
Social user creation override other user account information
Mar 26, 2020
Hi,
The issue i have discovered is that when i create a createsuperuser with incomplete information (firstname , lastname... missing) the social user creation just override the superuser account with his missing information.
Step to follow :
create a superuser with the django command :
$ manage.py createsuperuser
use the graphQL social auth to create your user : mutation token_authentication { socialAuthToken(accessToken: "xxxxBiBQGGLzTUwZD", provider: "facebook") { social { id uid user { username email firstName lastName } provider extraData } token } }
Expected :
A User is created thanks to the social auth module.
So we should have 2 users in the database :
root user (created with the createsuperuser command)
user1 (created with the socialauthToken mutation)
Real Behavior :
The social user is not created.
The information from the social user override the missing root user information.
Root user information before user social connection :
Hi! I met the same problem. Try to delete token and other data of current user on client side before you send socialAuth mutation. It solved my problem.
Hi,
The issue i have discovered is that when i create a createsuperuser with incomplete information (firstname , lastname... missing) the social user creation just override the superuser account with his missing information.
Step to follow :
create a superuser with the django command :
$ manage.py createsuperuser
use the graphQL social auth to create your user :
mutation token_authentication { socialAuthToken(accessToken: "xxxxBiBQGGLzTUwZD", provider: "facebook") { social { id uid user { username email firstName lastName } provider extraData } token } }
Expected :
A User is created thanks to the social auth module.
So we should have 2 users in the database :
Real Behavior :
The social user is not created.
The information from the social user override the missing root user information.
Root user information before user social connection :
Root user information after user social connection :
The 2 accounts are merged
To reproduce it, you can find in attachment :
Thank you for your help
django-graphql-social-auth_bug.zip
The text was updated successfully, but these errors were encountered: