[ome-users] OMERO Figure Download

Carnë Draug carandraug+dev at gmail.com
Thu Nov 2 12:38:18 GMT 2017


On 1 November 2017 at 12:23:49 +0000, "William Moore (Staff)"
<W.Moore at dundee.ac.uk> wrote:
> Hi Steve,
>
>  I’m afraid we don’t support token authentication yet, although we have been discussing it…
> https://trello.com/c/CbRYR7Ty/34-session-issues
> I’ve added your request to that card.
>
> The next best thing you can do is to use an existing session ID to join a session (like a short-lived token).
>
> You can get a session key when you login from the command line
> $ bin/omero login
>
> Or if you’re already logged-in, you can do
> $ bin/omero sessions key
>
> Then use that in your script to connect.
>
> conn = BlitzGateway(host="localhost", port=4064)
> conn.connect(SESSION_ID)
>
> I updated https://gist.github.com/will-moore/d448a7abd57425734aba426f0952eff6
> to show this.
>
> It would be better to add command line arguments to your script instead of
> hard-coding it.
>

A command line argument for the session ID would expose it on the
process list and make it visible to all other users in the system.

~ carandraug


More information about the ome-users mailing list