Page 1 of 1

Embedded OMERO viewer login error on Internet Explorer

PostPosted: Wed Jul 30, 2014 7:04 pm
by ravidk
Hello All,

We have embedded the Omero web viewer as an iFrame on a web page as instructed here: http://www.openmicroscopy.org/site/supp ... wPort.html

<div id="omeroviewport"><iframe width="850" height="600" src="http://our-host:4080/webclient/login/?username=test-user&password=testpass&server=1&url=http://our-host:4080/webclient/img_detail/204 " id="omeroviewport" name="omeroviewport"></iframe></div>

This works on Fire Fox and Chrome but when the page is loaded on Internet Exploter, it loads up the login screen and even if I enter the login details again on the login form I am still unable to login.
The second option of javascript popup didnt work either on IE.

But the viewer loads up if I directly enter the url on the browser address bar on IE as http://host:4080/webclient/login/?usern ... etail/204/

And I also can still open the webclient as http://host:4080/webclient and login.

Has anyone faced a similar issue or know any solution for this?

Many thanks
Ravi K.

Re: Embedded OMERO viewer login error on Internet Explorer

PostPosted: Thu Jul 31, 2014 6:15 am
by PaulVanSchayck
Dear Ravi,

This sounds like session cookies not being saved because of security settings. See for example this:
http://stackoverflow.com/questions/3894 ... t-explorer

You can get away with it quickly by setting this HTTP header:
Code: Select all
P3P: CP="NOI ADM DEV COM NAV OUR STP


Kind regards,

Paul

Re: Embedded OMERO viewer login error on Internet Explorer

PostPosted: Thu Jul 31, 2014 9:31 am
by atarkowska
Hi Ravid
I presume it is a problem of lack of encoding URL. Your src should be:

Code: Select all
http://real-host:port/webclient/login/?username=USERNAME&password=PASSWD&server=1&url=%2Fwebclient%2Fimg_detail%2FIMAGE_ID%2F


At least it works for me now. There can be also an issue with security settings level, you may try to google...

Just few comments on what you are doing. First of all, it is really bad idea to put credentials in your plane HTML code exposing it publicly. In order to do it right you should use public user to expose images you want be public, for more details how to set it up go to https://www.openmicroscopy.org/site/sup ... cData.html
Once you have that working you will need only

Code: Select all
<div id="omeroviewport"><iframe width="850" height="600" src="http://our-host:4080/webclient/img_detail/204 " id="omeroviewport" name="omeroviewport"></iframe></div>


If you have more questions about public user just let me know.

Hope that helps
Ola

Re: Embedded OMERO viewer login error on Internet Explorer

PostPosted: Thu Jul 31, 2014 3:54 pm
by ravidk
atarkowska wrote:Just few comments on what you are doing. First of all, it is really bad idea to put credentials in your plane HTML code exposing it publicly. In order to do it right you should use public user to expose images you want be public, for more details how to set it up go to https://www.openmicroscopy.org/site/sup ... cData.html


Thank you very much for this Ola, I was about to post another question on this open credentials issue. You found me the solution.

This basically solved my problem with the Internet explorer as well because I do not need to provide login credentials in the image url.
All works fine now.

So thank you very much.
Ravi K