Forum Discussion

FelipeCosta's avatar
FelipeCosta
Advocate II
4 years ago
Solved

iFrame Embedded Report Keeps Asking for Login

I have script that changes the embedded PBI report link periodically in a HTML page. 

 

I the first access, the iFrame is a login button and then the report is displayed. The problem is that the report keeps asking for a login every 2/3 hours. I was wondering whether there is a way to increase the session time. We don't wan't to publish the report to the web due to security reason and we don't want to use the complexity of creating Tokens.

 

Any help would be much appreciated!

 

  • Unfortunately there is no solution. I had to go all the way into the complexity of using Power BI Tokens.

10 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi FelipeCosta ,

    The Embed option doesn't automatically permit users to view the report. View permissions are set in the Power BI service. If a user opens a report URL directly, or one embedded in a web portal, report access requires authentication.  A new browser window or tab could open, it will ask for you sign-in. The user will need to sign-in to view the report each time they open a new browser window. Also, the user needs to be correctly licensed – either they need a Power BI Pro or Premium Per User (PPU) license, or the report must be in a workspace that is in a Power BI Premium capacity. You can review the following official documentation for more details.

    Embed a report in a secure portal or website

    If you want achieve a single sign-on experience, use the Embed in SharePoint Online option, or build a custom integration using the user owns data embedding method.

    Best Regards

    • FelipeCosta's avatar
      FelipeCosta
      Advocate II

      Hi, thanks for the answer. What I'm saying is that when the user sign-in initally to a given embedded report, it works fine, but after about 1 hour, the very same login embedded frame shows, so the user has to manually log in again.

      • Anonymous's avatar
        Anonymous
        Not applicable

        I have the same issue. I have embedded my reports to a web application. After 1-2 hours in the middle of a session, it just logs me out and shows the Sign In button. 

  • vinood2000's avatar
    vinood2000
    Regular Visitor

    I would like to chekc if we have any solution to this sign-in prompt while embeding power bi report using iframe.

  • Unfortunately there is no solution. I had to go all the way into the complexity of using Power BI Tokens.

    • lance_6's avatar
      lance_6
      Helper II

      When you say you had to "go all the way into the complexity of using Power BI Tokens." What do you mean? Could you point me to some documentation? Thanks

  • Abax's avatar
    Abax
    Frequent Visitor

    Hi, actualy you can add in your html code object on background, that acquire token (because endpoint has remember credentials and stay connected turn on) and than (onload + srcipt that change iframe content) to load embed link after object acquire token.