Getting ready

If you haven't done so yet, create an Auth0 application at https://auth0.com/​ and configure it by following the instructions there. Two social connections are provided in the free plan, so we will activate Google and Twitter to log in with them. You can also try other services. Note that some of them require you to register an app and get API keys and secrets.

Next, we need to install python-social-auth and some other dependencies in the project. Include these dependencies in your pip requirements:

# requirements/_base.txt
social-auth-app-django~=3.1
python-jose~=3.0
python-dotenv~=0.9
social-auth-app-django is a Django-specific package of the python-social-auth project that allows you to authenticate to your website using one of many social connections.

Install those dependencies with pip into your virtual environment.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset