Setting Up Social Auth
01:08 You will also need to include the social authentication URLs in your application, just as you did with the ones provided by Django. The steps so far have been a general configuration of Django. To use social authentication specifically with GitHub, you have to add a dedicated authentication backend.
01:44 So to use social authentication, you need to create a new value in settings. The first backend on the list is the default one used by Django. If you don’t include it here, then Django won’t be able to log in standard users.
You may notice that the new URL uses the namespace
social. Namespaces our Django’s way of organizing URLs in more complex projects. Using a unique namespace ensures that there will be no conflicts between your application’s URLs and the URLs of other applications.
The social authentication application uses the namespace
social, so every URL you want to use has to start with
social:. In the next section of the course, you’ll see how to create a GitHub application to use with Django social authentication.
Become a Member to join the conversation.