Why does datahub not automatically log you out if ...
# troubleshoot
b
Why does datahub not automatically log you out if you go to http://localhost:9002/logOut? It works if I log out using the logOut nav item. Is there another way I can logout/terminate the session from another web app programmatically?
b
hey! so I believe it's not just going to that url that will sign a user out, we have some logic when clicking the button that will also remove a cookie from the browser with the key
actor
and the value being the urn of the user logged in. So you could always try removing this cookie as well
b
Thing Is we’re opening datahub in an iframe and using OIDC and when we logout of our app I need to ensure datahub also logs out
Currently keycloak terminates all sessions yet datahub is accessible when our app is not
l
b
We're using the latest version which has
/logOut
href and having this issue
l
I use 0.8.43 and don't have such problem, but I had such problem with 0.8.41
b
@little-twilight-71687 cool will try that
@little-twilight-71687 yeah, it still doesn't work if you go to http://localhost:9002/logOut it just forwards you back to the dashboard
another way to test is to login and log your user out via the oauth app user session dashboard and refresh the datahub url it will still be logged in
@little-twilight-71687 yes, clicking on the Sign Out nav item does indeed work what I'm saying doesn't work is if you navigate to http://localhost:9002/logOut in your browser without clicking the sign out button it does not work or if you go to keycloak
user > session
and log out all sessions for the user he is not logged out of Datahub
l
First thing. If I go to logOut - I'm completely logged out, and I don't see any Datahub dashboards. Second thing. I think you are confused how Single Sign-Off (not Sign-On) works. Third thing. It's much better to use https and standard ports. But anyway. Good luck :)
b
@little-twilight-71687 so if you navigate manually to
<https://yourdatahuburl/logOut>
it logs you off? Can you share your OIDC config env vars without sharing any sensitive info? Maybe I have something configured incorrectly 🙏
l
If I append /logOut to my URL - nothing happens (IIRC, manual typing worked in 0.8.41), if I push "Sign Out" button - it works.
b
Exactly, like I said log button works but manual typing the url doesn't. Thanks for confirming 🙏