diff options
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index a9592c396c..dbb35c7227 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -195,6 +195,7 @@ class HomeServer(object): "registration_handler", "account_validity_handler", "event_client_serializer", + "saml_client", ] REQUIRED_ON_MASTER_STARTUP = ["user_directory_handler", "stats_handler"] @@ -527,6 +528,11 @@ class HomeServer(object): def build_event_client_serializer(self): return EventClientSerializer(self) + def build_saml_client(self): + from saml2.client import Saml2Client + + return Saml2Client(self.config.saml2_sp_config) + def remove_pusher(self, app_id, push_key, user_id): return self.get_pusherpool().remove_pusher(app_id, push_key, user_id) |