-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session cookies are still valid after logout #24713
Comments
I am also facing this issue though I am using keycloak as my OIDC. |
Is this still an issue in 3.1/4.0? I would assume so, but this risks being closed as stale/obsolete if we can't determine that. CC @craig-rueda in case he has any ideas how to directly answer/resolve this. |
i have the same error with AUTH_OID any news? |
Hi All, i am facing this same issue. I have tried these and it still doesn't work. The app is unable to modify or delete the cookie. Manually expiring the cookie or deleting the cookie in browser prevents this. I have trying to code the app to delete or modify the cookie. Anybody have any advice for me?
|
@rusackas Yes, same issues on 3.1.3 version |
To fully invalidate sessions on logout use this: https://superset.apache.org/docs/security/#switching-to-server-side-sessions |
Hi @dpgaspar I set the configuration as follows:
and in my keycloack_security_manager.py file I modified the logout section like this: from:
to:
But nothing has changed. By leaving the original logout function, I was being redirected back to the initial dashboard. putting it like this instead, I get redirected to the keycloack that does the logout and shows me the screen to log in again, but if in the address bar I remove bi.company.co.uk/login and put bi.company.co.uk I still get redirected to the dashboard without login. so it logs out the session on keycloack but it doesn't superset. |
closed by mistake. |
I've found that once moving to a server side session the session still isn't being fully deleted, but when I do session.clear() afterwards it cleans up properly and therefore logs out properly, but I wonder if there's a better way of doing that. |
Any solution? I am struggling to fix this issue. |
Can you point us to where and how you integrated that part? |
If your talking about the session.clear() part it's just after the logout call for me.
|
@Nboaram How do I achieve this with ldap settings ? we are using AD/ldap for user authentication. |
I'm no expert here, but I think @Nboaram is right... I assume you're using a custom security manager, like in the docs: If so, indeed you can just call session.clear(). I'm not sure, but if this is standard practice, it might be nice to add it to the docs. I don't deal with custom security managers since I happen to work for Preset, and this is all a solved problem. Let us know if you see that part of the logic flow in your fork, and do our best to help. |
After logout from superset, session cookies continues to be valid.
User can still login using those cookies if he has session cookie saved.
They should be invalidated after logout.
How to reproduce the bug
Same can be done in single browser.
Expected results
User should not be able to login, cookies should be invalidated after logout.
Actual results
User is able to login, cookies continues to be valid even after logout.
Environment
(please complete the following information):
114.0.5735.199
, Firefox :115.0.2
2.0.1
3.9.16
Cookie-Editor
How do I invalidate cookies after logout ??
The text was updated successfully, but these errors were encountered: