Open aliscie opened 3 years ago
I'm having a similar issue. Both FB & Google providers assign the same user.
Did you find out what could be the reason ? @aliscie
I also see that inside TEMPLATES (context_processors) you're missing:
"social_django.context_processors.backends",
"social_django.context_processors.login_redirect" # optional, depends on your logic
but I believe it won't solve your problems, because I have similar config and similar results.
I'm having a similar issue. Both FB & Google providers assign the same user.
Did you find out what could be the reason ? @aliscie
GRAPHENE = {
'MIDDLEWARE': [ 'graphql_jwt.middleware.JSONWebTokenMiddleware', ], }
AUTHENTICATION_BACKENDS = ( 'graphql_auth.backends.GraphQLAuthBackend', 'social_core.backends.google.GoogleOAuth2', 'django.contrib.auth.backends.ModelBackend', )
also `$ pip install django-graphql-auth` and `$ pip uninstall PyJWT` then `$ pip install PyJWT==1.7.0`
Also the problem could be somewhere else because I recreated my whole project from 0.
Try to use the code in the `settings.py`,
I am trying to use social auth in Django in my Django GraphQL API (an alternative to rest api). However, after I created the social auth I created a costume user which make things a bit complicated. Also, it worked at the begging very well but and it created the user called
weplutus.1
very well, but later after I added the following settingswhen new users register the social auth associate it with other an existed user even the email is new.