From e826459b14d8d468b173036acd0630d58ec412c5 Mon Sep 17 00:00:00 2001 From: themylogin Date: Mon, 13 Jan 2025 18:12:31 +0100 Subject: [PATCH] Unsubscribe from all event sources on logout (#15378) --- src/middlewared/middlewared/plugins/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middlewared/middlewared/plugins/auth.py b/src/middlewared/middlewared/plugins/auth.py index 27689fcc06339..7d15e5c393a63 100644 --- a/src/middlewared/middlewared/plugins/auth.py +++ b/src/middlewared/middlewared/plugins/auth.py @@ -961,6 +961,7 @@ async def logout(self, app): Deauthenticates an app and if a token exists, removes that from the session. """ + await self.middleware.event_source_manager.unsubscribe_app(app) await self.session_manager.logout(app) return True