Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Only load the SSO redirect servlet if SSO is enabled. (#15421)
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel authored Apr 13, 2023
1 parent be36600 commit c9723a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15421.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only load the SSO redirect servlet if SSO is enabled.
7 changes: 6 additions & 1 deletion synapse/rest/client/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c9723a1

Please sign in to comment.