summary refs log tree commit diff
path: root/synapse/config/sso.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2021-11-11 00:56:50 -0600
committerEric Eastwood <erice@element.io>2021-11-11 00:56:50 -0600
commitb559e2326b419b71bdbcf88ab35a6f3fbbea8219 (patch)
treee3ef5d870af0ee1888a88201f888933dd9e1a2b4 /synapse/config/sso.py
parentOnly run the tests package to get streaming Complement output (diff)
parentFix typos in the `username_available` admin API documentation. (#11286) (diff)
downloadsynapse-b559e2326b419b71bdbcf88ab35a6f3fbbea8219.tar.xz
Merge branch 'develop' into madlittlemods/return-historical-events-in-order-from-backfill
Conflicts:
	synapse/rest/client/room_batch.py
Diffstat (limited to 'synapse/config/sso.py')
-rw-r--r--synapse/config/sso.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/synapse/config/sso.py b/synapse/config/sso.py

index 11a9b76aa0..60aacb13ea 100644 --- a/synapse/config/sso.py +++ b/synapse/config/sso.py
@@ -101,13 +101,10 @@ class SSOConfig(Config): # gracefully to the client). This would make it pointless to ask the user for # confirmation, since the URL the confirmation page would be showing wouldn't be # the client's. - # public_baseurl is an optional setting, so we only add the fallback's URL to the - # list if it's provided (because we can't figure out what that URL is otherwise). - if self.root.server.public_baseurl: - login_fallback_url = ( - self.root.server.public_baseurl + "_matrix/static/client/login" - ) - self.sso_client_whitelist.append(login_fallback_url) + login_fallback_url = ( + self.root.server.public_baseurl + "_matrix/static/client/login" + ) + self.sso_client_whitelist.append(login_fallback_url) def generate_config_section(self, **kwargs): return """\ @@ -128,11 +125,10 @@ class SSOConfig(Config): # phishing attacks from evil.site. To avoid this, include a slash after the # hostname: "https://my.client/". # - # If public_baseurl is set, then the login fallback page (used by clients - # that don't natively support the required login flows) is whitelisted in - # addition to any URLs in this list. + # The login fallback page (used by clients that don't natively support the + # required login flows) is whitelisted in addition to any URLs in this list. # - # By default, this list is empty. + # By default, this list contains only the login fallback page. # #client_whitelist: # - https://riot.im/develop