From 5a3b1ee3fd183c6a20615567fd365f1f27e93127 Mon Sep 17 00:00:00 2001 From: Harshit Date: Sat, 3 Aug 2024 04:18:08 +0530 Subject: [PATCH] fix: machine auth for GAQ enabled deployments (#29591) --- superset/utils/machine_auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/utils/machine_auth.py b/superset/utils/machine_auth.py index 2382f9d72..df3979b0a 100644 --- a/superset/utils/machine_auth.py +++ b/superset/utils/machine_auth.py @@ -126,6 +126,8 @@ class MachineAuthProvider: login_user(user) # A mock response object to get the cookie information from response = Response() + # To ensure all `after_request` functions are called i.e Websockets JWT Auth + current_app.process_response(response) current_app.session_interface.save_session(current_app, session, response) cookies = {}