Hi,
we developing an OS reactive application that is part of heterogeneous (some are not in OS) applications and would like to use a central logout mechanism.
that boils down to: the OS reactive application must provide a service API to logout the user. the user id is an input parameter.
the Users and system modules of OS do not provide any mechanism to do so. Both don't have a user id as input and probably just use the client side information (which is not available with back-end calls to the service)
In Traditional web we had access to session data and could do something with that. In Reactive that is not possible.
Any ideas other than going all the miles and introduce session data and manipulate them to achieve the logout?
Thanks
I found some content with some kind of workarounds (I don't mean that they are the best) but, somehow, the problems described are similar to yours. Maybe You could take a look if you can get something from there that can help you:
https://stackoverflow.com/questions/64426917/is-there-a-way-to-logout-a-specific-user-in-outsystems
https://www.outsystems.com/forums/discussion/61977/log-out-users-on-reactive/
https://www.outsystems.com/forums/discussion/49776/logout-the-user-when-logging-in-from-another-browser-computer/
Hope this can help you.
Best regards,
Ricardo
Hi Ricardo,
Thanks for taking the time and sending related links.
The major issue is that Reactive OS applications do not provide enough 'handles' to do this properly. As in the links, there is no way to get session info nor have a system event upon making calls to the back-end (all were possible in Traditional web). The only option seems to build some mechanism on top what OS does to manage user sessions which I actually wanted to avoid in the first place.
I dont see why Reactive does not provide a version of the Logout System call that takes a user id. Or provide some mechanism to terminate a user session.
May be someone from OutSystems that monitors the forum can give some clues?
Thanks,
Eyad
In last scenario, I think that is really not possible, but you can ask directly to OutSystems Support opening a ticket:
https://success.outsystems.com/support/home
Hope that you can solve your problem the best way possible.
Just for anyone who might visit this thread later on.
After contacting OS support, it was stated that Reactive applications can not get data over user sessions nor actively terminate a user session by, say, a user id.
The only approach possible right now is to replace/extend the session management by your own code.
I have submitted an idea to extend the 'service center' OS application (that handles session) and make it possible to terminate a user session by user id.
https://www.outsystems.com/ideas/13336/mke-it-possible-to-terminate-user-session-in-reactive-applications/#