Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

will-moore
Copy link
Member

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
Copy link

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

@will-moore will-moore requested a review from dominikl June 12, 2024 07:18
Copy link
Member

@dominikl dominikl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Will. Looks good. With these changes the scripts works again 👍

@joshmoore joshmoore merged commit 88d0ec9 into ome:develop Jun 13, 2024
4 checks passed
@joshmoore joshmoore deleted the json_api_python_csrf_fix branch June 13, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants