diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-09-24 07:25:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 07:25:21 -0400 |
commit | bb7fdd821b07016a43bdbb245eda5b35356863c0 (patch) | |
tree | 090b0840e4ba0e6441ec5b4a79ad02d0b56b1be4 /synapse/handlers/sso.py | |
parent | Factor out common code for persisting fetched auth events (#10896) (diff) | |
download | synapse-bb7fdd821b07016a43bdbb245eda5b35356863c0.tar.xz |
Use direct references for configuration variables (part 5). (#10897)
Diffstat (limited to 'synapse/handlers/sso.py')
-rw-r--r-- | synapse/handlers/sso.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/handlers/sso.py b/synapse/handlers/sso.py index e044251a13..49fde01cf0 100644 --- a/synapse/handlers/sso.py +++ b/synapse/handlers/sso.py @@ -184,15 +184,17 @@ class SsoHandler: self._server_name = hs.hostname self._registration_handler = hs.get_registration_handler() self._auth_handler = hs.get_auth_handler() - self._error_template = hs.config.sso_error_template - self._bad_user_template = hs.config.sso_auth_bad_user_template + self._error_template = hs.config.sso.sso_error_template + self._bad_user_template = hs.config.sso.sso_auth_bad_user_template self._profile_handler = hs.get_profile_handler() # The following template is shown after a successful user interactive # authentication session. It tells the user they can close the window. - self._sso_auth_success_template = hs.config.sso_auth_success_template + self._sso_auth_success_template = hs.config.sso.sso_auth_success_template - self._sso_update_profile_information = hs.config.sso_update_profile_information + self._sso_update_profile_information = ( + hs.config.sso.sso_update_profile_information + ) # a lock on the mappings self._mapping_lock = Linearizer(name="sso_user_mapping", clock=hs.get_clock()) |