mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 15:53:51 +01:00
Disable loading RefreshTokenServlet
on workers (#15428)
This commit is contained in:
parent
253e86a72e
commit
be36600327
2 changed files with 5 additions and 1 deletions
1
changelog.d/15428.bugfix
Normal file
1
changelog.d/15428.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Disable loading `RefreshTokenServlet` (`/_matrix/client/(r0|v3|unstable)/refresh`) on workers.
|
|
@ -670,7 +670,10 @@ class CasTicketServlet(RestServlet):
|
|||
|
||||
def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None:
|
||||
LoginRestServlet(hs).register(http_server)
|
||||
if hs.config.registration.refreshable_access_token_lifetime is not None:
|
||||
if (
|
||||
hs.config.worker.worker_app is 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:
|
||||
|
|
Loading…
Reference in a new issue