diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-11-17 09:46:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 09:46:23 -0500 |
commit | ee382025b0c264701fc320133912e9fece40b021 (patch) | |
tree | 3a714a654b691a4873ce88f5c9f2a94f95c6d0f0 /synapse/server.py | |
parent | a comma too much (#8771) (diff) | |
download | synapse-ee382025b0c264701fc320133912e9fece40b021.tar.xz |
Abstract shared SSO code. (#8765)
De-duplicates code between the SAML and OIDC implementations.
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 21a232bbd9..12a783de17 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -89,6 +89,7 @@ from synapse.handlers.room_member import RoomMemberMasterHandler from synapse.handlers.room_member_worker import RoomMemberWorkerHandler from synapse.handlers.search import SearchHandler from synapse.handlers.set_password import SetPasswordHandler +from synapse.handlers.sso import SsoHandler from synapse.handlers.stats import StatsHandler from synapse.handlers.sync import SyncHandler from synapse.handlers.typing import FollowerTypingHandler, TypingWriterHandler @@ -391,6 +392,10 @@ class HomeServer(metaclass=abc.ABCMeta): return FollowerTypingHandler(self) @cache_in_self + def get_sso_handler(self) -> SsoHandler: + return SsoHandler(self) + + @cache_in_self def get_sync_handler(self) -> SyncHandler: return SyncHandler(self) |