Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Power BI Report Server Embedding URL with iFrame and avoiding the authentication popup

Hi,

I have an on-premise Power BI Report Server.

I want to Embed certain reports to my webapp. From the documentation I have understood that it's only possible via iFrame tag. But when I try to access it from my webapp, it pops up an authentication box asking for credentials. 

 

Is there any way to silently pass credentials and avoid the popup?

I tried to workaround this by first making an authenticated REST API call, and then enabling the the iframe div so that it takes the session from the successful REST API call prior. But it still shows the popup.

 

Immediate Help is highly appreciated.

 

4 Replies


  • Anonymous wrote:

    Is there any way to silently pass credentials and avoid the popup?



    It should work this way by default. Are your web server and PBIRS server joined to the same domain? Are your users also logged in to this domain?

    • Anonymous's avatar
      Anonymous
      Not applicable

      The report server is installed on-premise on a separate domain. Webapp is hosted in separate domain. Webapp stores the report server credentials, and is able to call the report server REST APIs perfectly via ntlm/windows basic authentication. But when I try to embed any report in one of the pages of my webapp, it gives a popup asking to enter the credentials. I would like to do that silently, as my webapp already knows the creds.

      • d_gosbell's avatar
        d_gosbell
        Super User

        Anonymous wrote:

         But when I try to embed any report in one of the pages of my webapp, it gives a popup asking to enter the credentials. I would like to do that silently, as my webapp already knows the creds.


        Yes, because if you use an iframe then the report server has to do it's own authentication. I'm not aware of any way that you can pass credentials into an iframe. This is more of a web developer topic than something specific to report server

  • cyclist007's avatar
    cyclist007
    Responsive Resident

    Hi, Did you find a solution to this? Is there a better way to embed PBIRS reports in 2023?