Closed dominikl closed 8 months ago
We might need more specifics about what failed here. Trying to reproduce, I was able to successfully complete the following workflow:
login into OMERO using the JSON API i.e.
a. first make a GET request against the /api/v0/token
endpoint to retrieve the CSRF token
b. then make a POST request against the /api/v0/login
endpoint, filling the payload and headers accordingly
c. the last request retruned a 200 status code with the session ID stored in the sessionUuid
attribute of the JSON response
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/java-gateway-authentication-using-the-json-api/84307/11
Close. Turned out that it was a problem with using the session ID.
Moving the ticket from the Java gateway to here: https://github.com/ome/omero-gateway-java/issues/80 . Session login via Java gateway works, so it's not a gateway issue.
Apparently the login with a session ID retrieved from JSON API login is not working, see https://forum.image.sc/t/java-gateway-authentication-using-the-json-api/84307 . Unfortunately I've not been able to replicate the issue yet, as I can't login via JSON API in the first place (using our demo server).