We are using SSO for logging in users to our discourse instance. What we want is that user should also be logged out from forum, if he logs out on the main app, and vice versa. The way we are achieving this is, we call the Discourse API to logout when the user logs out on main app to log out from Discourse and the Discourse logout url points to our app logout url.
The only issue occurs is that using the Discourse API, all sessions on all devices are logged out. If we disable strict logout, the logout via API doesn’t work.
Would it be possible to achieve this functionality so that we can only logout users on forum, who logged in with a particular session on app? Or else, if somebody could guide how we can achieve such a functionality via a custom plugin.