Default Configuration
The authentication settings for ShipWithDjango are highly configurable, allowing you to control user registrations and enable or disable third-party logins with ease. These settings are managed through the CONFIG/authentication.py
file, where you can adjust the configuration to suit your project’s needs.
Here’s a breakdown of the default configuration and how you can customize it:
Registrations
The ALLOW_REGISTRATIONS
setting controls whether new users can sign up for your application. If you set ALLOW_REGISTRATIONS
to False
, the signup page will be blocked, preventing any new registrations. This can be useful for maintaining a closed or invite-only platform.
Third-Party Logins
ShipWithDjango supports third-party logins through GitHub and LinkedIn, offering your users a convenient way to authenticate using their existing accounts.
Enabling Third-Party Logins
To enable third-party logins, you first need to set ALLOW_THIRD_PARTY_LOGIN
to True
. This global setting must be enabled for any individual third-party login (such as GitHub or LinkedIn) to function. If this is set to False
, no third-party login options will be available, even if they are individually configured.
Github
LinkedIn
Last updated