-
Hi all, My problem is now that I don't know what to do with this "sid". I suppose it is a (microsoft) session id that i need to invalidate in Kratos, but I can't figure out how. I asked ChatGPT and it told me i should just send a DELETE request to http://{kratos-host}:4433/session/{sessionId}. That seems simple enough, but i get an error called "security_csrf_violation", which is not totally unexpected. I have searched my Kratos sqlite database for the sid i get from MS, but I can't find it anywhere. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @popstr I suspect you would need to have to specify the |
Beta Was this translation helpful? Give feedback.
-
I found this: https://stackoverflow.com/questions/48957473/azure-ad-application-registration-logout-url-what-is-sid It seems the SID parameter maps to the "session state" field that you should have gotten back when logging in the user via callback? |
Beta Was this translation helpful? Give feedback.
-
First step to start supporting SLO at all |
Beta Was this translation helpful? Give feedback.
Hi @popstr
I suspect you would need to have to specify the
https://<project-url>/self-service/logout/browser
URL to initiate the logout flow and then have a js function submit it automatically on the UI you have integrated with Ory (or a button). The session is available in the users' browser as a cookie, so loading the correct domain (your domain or ory project url) and submitting the logout request to ory from there should do the trick.