We're Hiring!

Embedded OMERO viewer login error on Internet Explorer

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.

Embedded OMERO viewer login error on Internet Explorer

Postby ravidk » Wed Jul 30, 2014 7:04 pm

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.
ravidk
 
Posts: 4
Joined: Thu Jul 17, 2014 8:50 am

Re: Embedded OMERO viewer login error on Internet Explorer

Postby PaulVanSchayck » Thu Jul 31, 2014 6:15 am

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
PaulVanSchayck
 
Posts: 41
Joined: Tue May 20, 2014 7:04 am

Re: Embedded OMERO viewer login error on Internet Explorer

Postby atarkowska » Thu Jul 31, 2014 9:31 am

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
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Embedded OMERO viewer login error on Internet Explorer

Postby ravidk » Thu Jul 31, 2014 3:54 pm

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
ravidk
 
Posts: 4
Joined: Thu Jul 17, 2014 8:50 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest