zulip/zproject
Erik Tews 1ecb87ec80 auth: show _OR_ during login only when other methods are available.
There might be good reasons to have other external authentication
methods such as SAML configured, but none of them is available.

This happens, for example, when you have enabled SAML so that Zulip is
able to generate the metadata in XML format, but you haven't
configured an IdP yet. This commit makes sure that the phrase _OR_ is
only shown on the login/account page when there are actually other
authentication methods available. When they are just configured, but
not available yet, the page looks like as if no external
authentication methods are be configured.

We achieve this by deleting any_social_backend_enabled, which was very
similar to page_params.external_authentication_methods, which
correctly has one entry per configured SAML IdP.
2021-07-20 14:29:48 -07:00
..
jinja2 refactor: Rename and move app_filters.py. 2021-06-11 07:43:22 -07:00
__init__.py
backends.py auth: show _OR_ during login only when other methods are available. 2021-07-20 14:29:48 -07:00
computed_settings.py sentry: Set environment from `machine.deploy_type` config. 2021-07-15 15:01:43 -07:00
config.py sentry: Set environment from `machine.deploy_type` config. 2021-07-15 15:01:43 -07:00
configured_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
default_settings.py blueslip: Remove SAVE_FRONTEND_STACKTRACES setting. 2021-07-07 09:26:02 -07:00
dev_settings.py blueslip: Remove SAVE_FRONTEND_STACKTRACES setting. 2021-07-07 09:26:02 -07:00
dev_urls.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
email_backends.py emails: Fix outgoing email handling inside the dev environment. 2021-04-28 18:00:37 -07:00
legacy_urls.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
prod_settings.pyi zproject: Add prod_settings mypy stub, aliasing prod_settings_template. 2021-07-05 09:53:41 -07:00
prod_settings_template.py oidc: Add auto_signup configuration option. 2021-07-16 14:40:07 -07:00
sentry.py sentry: Avoid importing rate_limiting at topic level. 2021-07-18 21:19:11 -07:00
settings.py python: Add noqa comments for the specific star imports we allow. 2020-06-11 15:36:43 -07:00
terms.md.template docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
test_extra_settings.py rate_limit: Add rate limiting of ZulipRemoteServer. 2021-07-08 15:55:02 -07:00
test_settings.py test_settings: Use TEST_EXTERNAL_HOST to override ‘testserver’ default. 2020-12-17 13:07:59 -08:00
urls.py settings: Merge settings API endpoints. 2021-07-19 21:14:32 -07:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00