mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 13:03:50 +01:00
Only load the SSO redirect servlet if SSO is enabled. (#15421)
This commit is contained in:
parent
be36600327
commit
c9723a1c1f
2 changed files with 7 additions and 1 deletions
1
changelog.d/15421.misc
Normal file
1
changelog.d/15421.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Only load the SSO redirect servlet if SSO is enabled.
|
|
@ -675,7 +675,12 @@ def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
|
|||
and hs.config.registration.refreshable_access_token_lifetime is not None
|
||||
):
|
||||
RefreshTokenServlet(hs).register(http_server)
|
||||
SsoRedirectServlet(hs).register(http_server)
|
||||
if (
|
||||
hs.config.cas.cas_enabled
|
||||
or hs.config.saml2.saml2_enabled
|
||||
or hs.config.oidc.oidc_enabled
|
||||
):
|
||||
SsoRedirectServlet(hs).register(http_server)
|
||||
if hs.config.cas.cas_enabled:
|
||||
CasTicketServlet(hs).register(http_server)
|
||||
|
||||
|
|
Loading…
Reference in a new issue