Mixing Jmix Superset add-on embedded dashboards (guest token) with full Superset UI iframe (SSO) causes redirect to login #35231
Replies: 3 comments 6 replies
-
Hi @dotdot1z23! I'm Dosu and I’m helping the superset team. Mixing guest token embedding and Keycloak SSO sessions in the same browser session is known to cause session conflicts in Superset. When you switch between an embedded dashboard (guest token) and the full Superset UI (OAuth SSO), the session state can be lost, resulting in a redirect to the login page. This happens because Superset treats these authentication flows as independent: guest token authentication is stateless and does not maintain or restore the OAuth session cookie, while OAuth SSO relies on persistent session cookies. There is no backend logic that explicitly clears or overwrites session cookies during guest token usage, but browser policies, SameSite cookie settings, and iframe isolation can lead to session inconsistencies source. Many users have reported that embedding dashboards with guest tokens while logged in with a higher-privilege session in the same browser can cause session conflicts, sometimes requiring logging out or using a different browser/incognito mode to isolate sessions source. There is currently no official solution to seamlessly combine both flows without breaking the SSO session. The recommended approach is to choose one authentication flow per browser context: use guest tokens for embedding dashboards, or use OAuth SSO for the full UI, but avoid mixing both in the same session source. Workarounds include: using separate browsers or incognito windows for each flow, configuring cookie isolation via domain/subdomain separation, or advanced reverse proxy setups. If you must support both flows, consider isolating them at the browser or network level to prevent session conflicts. For embedding dashboards with OAuth enabled, use the Embedded SDK with guest tokens, and ensure proper CORS, allowed_domains, and SameSite=None cookie settings source. Let me know if you need more details on any workaround or configuration! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
I am also facing a similar issue, can someone help me? |
Beta Was this translation helpful? Give feedback.
-
help me too? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I’m working on an integration between Apache Superset and a Jmix application using the official Jmix Superset add-on. My goal is to provide two different navigation options inside the Jmix UI:
Nav A: Embedded dashboard (guest token)
<superset:dashboard embeddedId="..."/>
).Nav B: Full Superset UI (Keycloak SSO)
/superset/...
).The problem
/login
again.So it looks like navigating through the guest token flow somehow breaks or clears the Keycloak SSO session for the iframe.
What I’ve tried
Followed Jmix documentation:
FEATURE_FLAGS = {"EMBEDDED_SUPERSET": True}
GUEST_ROLE_NAME = 'Gamma'
TALISMAN_CONFIG
withframe-ancestors
to allow embedding from Jmix.Configured cookies:
SESSION_COOKIE_SAMESITE = "None"
SESSION_COOKIE_SECURE = True
(in HTTPS).Verified:
But switching Nav A → Nav B consistently causes the full UI iframe to lose its session.
My understanding
My questions 🙏
Environment
Thanks a lot for your help! 🙏
Beta Was this translation helpful? Give feedback.
All reactions