ome / openmicroscopy

OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
200 stars 102 forks source link

Use cookie to get csrf token in JSON API Login.py #6391

Closed will-moore closed 5 months ago

will-moore commented 5 months ago

What this PR does

Fixing this example as part of question at https://forum.image.sc/t/testing-omero-json-api-with-curl-token-login/97400

Testing this PR

  1. Run python Login.py with the correct credentials (edit the constants in the file or use Parse_OMERO_Properties)

  2. Should be able to login to the specified server and should list Projects etc.

imagesc-bot commented 5 months ago

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/testing-omero-json-api-with-curl-token-login/97400/3