-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add client support for an OMERO auto-connection file on public websites #106
Comments
|
If we move to http login I think this would still work, since
|
Hmmm...but "port" probably doesn't make any sense via HTTP. I wonder then if it shouldn't be a different endpoint:
though maybe in a future HTTP world this all just goes away. |
If
|
what about the websocket case which is now critical for many notebooks/data access?
|
Yes, that should also work if we want to switch everyone to using websockets. IIRC we've tested that before. |
I guess since this optionally gathers the json login info and then falls back to previous behavior (?) it would be ok. Not sure if it wouldn't be safer to have a separate class to do the next-gen login. (Another option might be something like |
Existing behaviour 😀
|
That's the problem I mentioned on Monday |
@jburel Could you explain a bit more? I don't see how it's related to websockets. |
it is not. I first had to adjust the way to connect then we started to use binder for most notebooks so I had to adjust anyway. |
Background
For a long time the IDR has recommended the use of a custom connection method instead of the standard OMERO.py client or gateway methods. This was originally done to allow load-balancing since the OMERO binary protocol does not allow session pinning on a front end proxy:
This custom connection method fetches a json configuration file from the IDR website if a base hostname is provided. For example,
conn = connection('idr.openmicroscopy.org', ...)
will attempt to download a fileconnection/omero-client.json
from the host using https, in this case https://idr.openmicroscopy.org/connection/omero-client.jsonThis connection file effectively allows custom configuration to be pushed to the clients- normally this would require code changes in the client to override the defaults, or a knowledgable user who knows and remembers to pass additional configuration to their client.
Most recently this is being used to provide a default username and password to connect to the IDR:
Future benefits to us or others include:
example.org
for users to configure their clients, whilst deploying OMERO.server on a different address- there is no requirement forconnection/omero-client.json
to reside on the same host or domain as OMERO.serverProposal
https://HOSTNAME/connection/omero-client.json
to OMERO.py clients and BlitzGateway.Alternative:
.well-known
.well-known
is standard for defining well-known locations on a web server providing metadata:We could consider using something like
https://HOSTNAME/.well-known/omero/client.json
instead.The text was updated successfully, but these errors were encountered: