Embedding reports with auth token

Hello Helical Team,

Embedding reports with auth token

We are running version 5, with sso, and trying to embed a report using the embed tag. This is the sample URL being used for it:

http://helicalhost.com:8085/hi-ee/#/report-viewer?dir=Reports&file=MyReport.hr&authToken=&mode=dashboard

The url works when put directly into chrome, but not via an embed tag. When it is in an embed tag, a “login success” message flashes but then the login page loads instead of the report

Thanks,
Vema.

Hello vema,

In order for embedding to work, there are certain pre-requisite which we should make sure that they should be followed.

a. Always make sure that the call is from secure to secure (i.e https to https) or non secre to non secure. If there is secure to non secure, or non secure to secure call, there is a good chance that the browser might block it as a security risk. It is always better to have both servers (helical insight as well as parent application inside which you are embedding) in https

b. Chrome, safari are having even more heightened security restrictions. firefox works fine. Hence you should perhaps try to check the integration in firefox (especially if your helical insight is not on https)

c. The call to helical insight should also come from a server itself. That means that if you simply create a webpage on your desktop and inside that within iframe/object tag/embed tag if you are trying embed it might not work since the call to helical insight is not coming from a web server. If you simply deploy this same webpage file in tomcat or any other webserver and see, you will see that it might work fine.

For testing above, lets say you have installed helical insight on your local server. You can put this webpage (let’s say with the name embed.html) inside helical insight tomcat folder itself. So in the location “…\hi\apache-tomcat-9\webapps” itself you can create a folder say integration. Then via localhost:8085/integration you can see it working since the call is happening via a webserver.

Thank You,
Helical Insight.