Closed Chitrank-Dixit closed 5 years ago
I can't really help you out on this one, try to check with python social auth how you should develop your backend. This library handles only the link between third party backends and tokens not user creation.
I am trying to add a custom backend and here is the code. I had copied it from Google backend.
It runs well and fetches all the user data needed, but after that it always try to create a new user, on the other hand. If we see Google backend does not create a new user if the user already exists.
My custom backend gives me issue on this file at path
/venv/lib/python3.6/site-packages/django/contrib/auth/__init__.py
and google backend goes to different path
/venv/lib/python3.6/site-packages/rest_framework_social_oauth2/oauth2_grants.py
this is the difference I have found out so far.