@@ -39,17 +39,6 @@ def read_config(self, config, **kwargs):
3939
4040 self .sso_client_whitelist = sso_config .get ("client_whitelist" ) or []
4141
42- # Attempt to also whitelist the server's login fallback, since that fallback sets
43- # the redirect URL to itself (so it can process the login token then return
44- # gracefully to the client). This would make it pointless to ask the user for
45- # confirmation, since the URL the confirmation page would be showing wouldn't be
46- # the client's.
47- # public_baseurl is an optional setting, so we only add the fallback's URL to the
48- # list if it's provided (because we can't figure out what that URL is otherwise).
49- if self .public_baseurl :
50- login_fallback_url = self .public_baseurl + "_matrix/static/client/login"
51- self .sso_client_whitelist .append (login_fallback_url )
52-
5342 def generate_config_section (self , ** kwargs ):
5443 return """\
5544 # Additional settings to use with single-sign on systems such as SAML2 and CAS.
@@ -65,10 +54,6 @@ def generate_config_section(self, **kwargs):
6554 # phishing attacks from evil.site. To avoid this, include a slash after the
6655 # hostname: "https://my.client/".
6756 #
68- # If public_baseurl is set, then the login fallback page (used by clients
69- # that don't natively support the required login flows) is whitelisted in
70- # addition to any URLs in this list.
71- #
7257 # By default, this list is empty.
7358 #
7459 #client_whitelist:
0 commit comments