summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-01-06 16:16:16 +0000
committerRichard van der Hoff <richard@matrix.org>2021-01-07 14:56:42 +0000
commit8a910f97a47edb398acba2ad87805e4593c76139 (patch)
tree67d54ee7fcde2f327e65bb5647fa55ce5735e431 /synapse
parentFix type hints in test_login.py (diff)
downloadsynapse-8a910f97a47edb398acba2ad87805e4593c76139.tar.xz
Add some tests for the IDP picker flow
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v1/login.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index ebc346105b..be938df962 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -319,9 +319,9 @@ class SsoRedirectServlet(RestServlet):
         # register themselves with the main SSOHandler.
         if hs.config.cas_enabled:
             hs.get_cas_handler()
-        elif hs.config.saml2_enabled:
+        if hs.config.saml2_enabled:
             hs.get_saml_handler()
-        elif hs.config.oidc_enabled:
+        if hs.config.oidc_enabled:
             hs.get_oidc_handler()
         self._sso_handler = hs.get_sso_handler()