Integrating social login into Django and DRF
Social login is crucial for any client-facing application. In today’s modern world, users do not want to fill out lengthy forms to register, nor do they want to remember passwords for every site; these hurdles can be resolved using social login. There are multiple services, such as Google, Facebook, Twitter, and GitHub, that can be plugged into our website to enable social login. Each of these platforms has different implementation details, and it can be tricky to implement them. I recommend you use the python-social-auth
third-party package to integrate social login into the Django application.
We will not get into the implementation details for python-social-auth
(https://python-social-auth.readthedocs.io/en/latest/configuration/django.html) since there are multiple types of service providers available, such as Google, Facebook, GitHub, and so on. You are advised to go through the integration documentation for their respective...