Get LaunchBase

Authentcation page!

Integrating social authentication into your Django application can greatly enhance user experience by allowing users to sign in using their existing social media accounts such as Google, GitHub, and Twitter. This guide will walk you through setting up Django social auth and updating your secrets.json file to securely store your credentials.

Add the authentication backends for the social platforms you intend to use:

# Oauth provider settings
    #django default user model - for admin page
    #social auth backends
    # other providers

Secrets Management

It is critical to manage your API keys and secrets securely. Store these sensitive keys in a secrets.json file and load them into your django settings.


Register Your Application

For each platform you intend to use, you must register your application to obtain API keys and secrets:

  • Google: Register your app in the Google Developer Console, enable the Google+ API, and set the callback URL.
  • GitHub: Register your app in the GitHub Developer Settings, and set the callback URL.
  • Twitter: Create an app in the Twitter Developer Portal, enable it with the necessary permissions, and set the callback URL.