Only load the SSO redirect servlet if SSO is enabled. (#15421)
This commit is contained in:
parent
be36600327
commit
c9723a1c1f
|
@ -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 New Issue