<div dir="ltr"><div>Dear all,<br></div><div><br></div><div>one more question regarding the webgateway. Currently I </div><div>- get a crsf-token</div><div>- login using the crsf-token and get a session-id</div><div>- do <a href="http://s.th">s.th</a>. e.g. query image data</div><div><br></div><div>now - should I not close the session or do a logout at the end?</div><div><br></div><div>I guess it will timeout after a while. So is it correct to just create new sessions / login calls - or is there a way to close it?</div><div><br></div><div>Regards,</div><div>Manuel</div><div> <br></div><br><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
<div>Hi Manuel</div>
<div><br>
</div>
<div>You'll always need to create a web Django session. Have you seen <a href="https://docs.openmicroscopy.org/omero/5.4.7/developers/json-api.html#getting-started" target="_blank">
https://docs.openmicroscopy.<wbr>org/omero/5.4.7/developers/<wbr>json-api.html#getting-started</a> ? It includes an example of using Python to log in to web.</div>
<div><br>
</div>
<div>Simon<br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 3 August 2018 at 15:05, Manuel Stritt <span dir="ltr">
<<a href="mailto:manuel.stritt@idorsia.com" target="_blank">manuel.stritt@idorsia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>I'm using the webgateway to programmatically e.g. download images. That works if a user used the web viewer before and logged in there,</div>
<div>but it would be nice to use the webgateway completely programmatically without user interaction.</div>
<div><br>
</div>
<div>Is there a way to perform an authentication via rest-API / webgateway directly?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Manuel<br clear="all">
<div><br>
</div>
<br>
</div>
</div>
<br>
<div><br>
</div>
<div>
<div><font size="2">The information of this email and in any file transmitted with it is strictly confidential and may be legally privileged.</font></div>
<div><font size="2">It is intended solely for the addressee. If you are not the intended recipient, any copying, distribution or any other use of this email is prohibited and may be unlawful. In such case, you should please notify the sender immediately and
destroy this email.</font></div>
<div><font size="2">The content of this email is not legally binding unless confirmed by letter.</font></div>
<div><font size="2">Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of the sender's company.</font></div>
</div>
<br>
______________________________<wbr>_________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy<wbr>.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" rel="noreferrer" target="_blank">http://lists.openmicroscopy.or<wbr>g.uk/mailman/listinfo/ome-deve<wbr>l</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div>
<br>______________________________<wbr>_________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.<wbr>openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" rel="noreferrer" target="_blank">http://lists.openmicroscopy.<wbr>org.uk/mailman/listinfo/ome-<wbr>devel</a><br>
<br></blockquote></div><br><br>
</div></div>
<br>
<div><br></div><div><div><font size="2">The information of this email and in any file transmitted with it is strictly confidential and may be legally privileged.</font></div><div><font size="2">It is intended solely for the addressee. If you are not the intended recipient, any copying, distribution or any other use of this email is prohibited and may be unlawful. In such case, you should please notify the sender immediately and destroy this email.</font></div><div><font size="2">The content of this email is not legally binding unless confirmed by letter.</font></div><div><font size="2">Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of the sender's company.</font></div></div>