We're Hiring!

Publishing images

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Publishing images

Postby saleht » Mon Nov 06, 2017 2:50 pm

hi guys,

i already did configuration for sharing functionality

i did what was written at the Documentation

Code: Select all
$ bin/omero config set omero.web.public.enabled True

$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'


but the problem is if i published an image to my public group,and open the link, i have to log in first

i want people opening my shared image without any login and it should open in omero_viewer
is this possible

thy for ur quick answer ;)

cheers, Saleh
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: Publishing images

Postby kennethgillen » Mon Nov 06, 2017 2:54 pm

Did you add your `public-omero-user` to the group you wish to be open to the public?

cf https://docs.openmicroscopy.org/omero/5 ... ublic-user

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Publishing images

Postby saleht » Mon Nov 06, 2017 3:07 pm

Hi Kenny,

actually not, because i was not able to see this new user on GUI

do i have to create public user from gui first then
do this
$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'

or these two commands will create this user automatically
Saleh
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: Publishing images

Postby kennethgillen » Mon Nov 06, 2017 3:15 pm

saleht wrote:do i have to create public user from gui first then
do this
$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'

or these two commands will create this user automatically
Saleh


Hi Saleh,

You will need to create the new user, which can be done via the webclient UI, or the OMERO.cli.

If you see the step "Create a member of this group" at https://docs.openmicroscopy.org/omero/5 ... ublic-user

Those commands will only tell OMERO which user to use - they won't create anything.

Best,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Publishing images

Postby saleht » Tue Nov 07, 2017 8:49 am

Hi kenny

thx for your support, now actully i did everything correct but still i have to log in to see the shared image

i create a user
i create a group (read only )
i add this user to this group
i did the commands
Code: Select all
bin/omero config set omero.web.public.enabled True

$ bin/omero config set omero.web.public.user 'share'

$ bin/omero config set omero.web.public.password '*****'
$ bin/omero config set omero.web.public.url_filter '^/webgateway'

my config is

Code: Select all
ldap.base=*********
omero.data.dir=/mnt/ExtVol/OMERO
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=omero_user
omero.jvmcfg.append=-Dcom.sun.jndi.ldap.connect.pool.timeout=500
omero.ldap.base=**********
omero.ldap.config=true
omero.ldap.new_user_group=default
omero.ldap.password=********
omero.ldap.referral=follow
omero.ldap.sync_on_login=false
omero.ldap.urls=ldap://ldaps.ad.hhu.de:389
omero.ldap.user_mapping=omeName=sAMAccountName,firstName=givenName,lastName=sn,email=mail
omero.ldap.username=******
omero.mail.config=true
omero.mail.host=mail.hhu.de
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_webtagging_tagsearch", "omero_fpbioimage", "omero_gallery", "omero_mapr", "omero_webtagging_autotag", "omero_iviewer"]
omero.web.debug=false
omero.web.mapr.config=[{"menu": "key1", "config": {"default": ["Key1"], "all": ["Key1", "Key2"], "ns": ["openmicroscopy.org/mapr/key1"], "label": "Key1"}}]
omero.web.open_with=[["Image viewer", "webindex", {"supported_objects": ["image"], "script_url": "webclient/javascript/ome.openwith_viewer.js"}], ["omero_figure", "new_figure", {"supported_objects": ["images"], "target": "_blank", "label": "OMERO.figure"}], ["omero_fpbioimage", "fpbioimage_index", {"supported_objects": ["image"], "script_url": "fpbioimage/openwith.js", "label": "FPBioimage"}], ["omero_iviewer", "omero_iviewer_index", {"supported_objects": ["images", "dataset", "well"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}]]
omero.web.public.enabled=True
omero.web.public.password=********
omero.web.public.server_id=1
omero.web.public.url_filter=^/webgateway
omero.web.public.user=share
omero.web.ui.center_plugins=[["Auto Tag", "omero_webtagging_autotag/auto_tag_init.js.html", "auto_tag_panel"]]
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}], ["Tag Search", "tagsearch"], ["Gallery", "webgallery_index", {"target": "_blank", "title": "Open Gallery in new tab"}], ["mapr", {"query_string": {"experimenter": -1}, "viewname": "maprindex_key1"}, {"title": "Key1 browser"}]]
omero.web.viewer.view=omero_iviewer.views.index


and one more thing
if i tried opening the shared image by double clicking i am getting a message:
"Viewer opened without image. data-set or well id "
and not opening the image

Saleh
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

Re: Publishing images

Postby wmoore » Tue Nov 07, 2017 10:23 pm

Hi,

Just to confirm. You have created a user with username 'share' and the same password as in config?
This user will only be able to access public urls that match the regex url filter, in your case

Code: Select all
omero.web.public.url_filter=^/webgateway


Using /webgateway means that you can make the 'webgateway' image viewer public (but not the webclient UI). E.g. https://nightshade.openmicroscopy.org/w ... l/3933597/
You will need that image to be in the same group that the public 'share' user is a member of.

If you want the whole webclient UI to be publicly available, try

Code: Select all
$ bin/omero config set omero.web.public.url_filter '^/(webadmin/myphoto/|webclient/(?!(script_ui|ome_tiff|figure_script))|webgateway/(?!(archived_files|download_as)))'

(see the public docs page for an explanation of this.


The bug in opening iviewer has been reported at https://trello.com/c/IduyAGNN/8-bug-web ... id-ignored.

Regards,

Will.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Publishing images

Postby saleht » Tue Nov 21, 2017 1:43 pm

Hi will,

thank you for the info, i will try the command which you wrote
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron