Log out from OMERO server via API

Hi all,

I am currently working on the OMERO extension for QuPath (using the JSON API). More specifically, I am trying to implement a way to manage different OMERO clients for different OMERO servers within QuPath.

Since the user should be able to login with their credentials and logout as they wish, I would like to find a way to ‘force’ a log out from a connected client/server via the API (= closing a Session). However, I didn’t find any information about this in the docs. The closest thing I could find was the timeout after which a session is automatically closed, which I believe is not as reliable as directly requesting to close the session.

Is there a way to do this? Hopefully I didn’t miss this in the docs!

Thanks in advance,


1 Like

Hi Melvin,

Apologies, this isn’t covered in the JSON API.
But you can use the webclient logout URL.
If you POST to `‘your-server/webclient/logout/’ that should do the trick.
You don’t need to include any data.

Hope that helps,

Hi Will,

Thank you for your quick reply.
Logging out through the webclient seems to work well, thanks!

Kind regards,