Easy override for social logins (#446)

Add MAILMAN_WEB_SOCIAL_AUTH for social logins

The `MAILMAN_WEB_SOCIAL_AUTH` list contains a default set of social
login provides. This was previously included in `INSTALLED_APPS`.

Separating it to it's own list makes it easier to disable or otherwise
override which social login providers are enabled without the need to
modify `INSTALLED_APPS`.

Older installations where `INSTALLED_APPS` were overridden continues to
work. The `MAILMAN_WEB_SOCIAL_AUTH` is ignored for those and
`INSTALLED_APPS` is used as is.
This commit is contained in:
Stefan Gangefors
2021-03-20 18:28:54 +01:00
committed by GitHub
parent 7d67045280
commit 47f70d73bd
3 changed files with 24 additions and 12 deletions

View File

@@ -71,6 +71,14 @@ change them unless you know what you want.
`http://mailman-web:8000` by default so that Core can fetch templates from
Web.
- `MAILMAN_WEB_SOCIAL_AUTH`: This is a list of Social login providers.
It contains a default set of providers. Override it if you want to remove
or disable social login entierly.
If `INSTALLED_APPS` is overridden `MAILMAN_WEB_SOCIAL_AUTH` is not used and
you must specify any social login provider in `INSTALLED_APPS` instead.
See [settings.py](mailman-web/settings.py) for implementation details.
Running
=======