Adding social authentication to your site
Social authentication is a widely used feature that allows users to authenticate using their existing account of a service provider using Single Sign-on (SSO). The authentication process allows users to authenticate into the site using their existing account from social services like Google, Facebook, or Twitter. In this section, we will add social authentication to the site using Google.
To implement social authentication, we will use the OAuth 2.0 industry-standard protocol for authorization. OAuth stands for Open Authorization. OAuth 2.0 is a standard designed to allow a website or application to access resources hosted by other web apps on behalf of a user. Google uses the OAuth 2.0 protocol for authentication and authorization.
Python Social Auth is a Python module that simplifies the process of adding social authentication to your website. Using this module, you can let your users log in to your website using their accounts from other services...