Forum Discussion

qiushi_zhai's avatar
qiushi_zhai
Regular Visitor
5 years ago

PowerBI authentication

According to the document

https://docs.microsoft.com/zh-cn/power-bi/collaborate-share/service-publish-to-web#howitworks

Publish the edited powerbi to personal web app using iframe (create embedded code through "publish to web")

But every time you open the embedded powerbi iframe page, you have to log in to the Microsoft account again,

Many experiments, check the document found that can only save 1 hour authentication

How to customize or expand to more than one week

5 Replies

  • v-lionel-msft's avatar
    v-lionel-msft
    Community Support

    Hi qiushi_zhai ,

     

    Please confirm which method you used to create the edmbed code(Refer to avatorl 's answer.).

     

    The authentication token lifetime is controlled based on your AAD settings. When the authentication token expires, the user will need to refresh their browser to get an updated authentication token. The default lifetime is one hour, but it could be shorter or longer in your organization. There is no ability to automatically refresh the token in this scenario.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

  • qiushi_zhai's avatar
    qiushi_zhai
    Regular Visitor

    Sorry for the late reply

    Thank you for your answers

    I have used 'website or portal'

    But now every time you open an embedded web page at an interval of more than an hour, there will be a Microsoft login button,

    I'm thinking about how to solve it. I don't need a button every time I open a page

    So I expect to use aad to avoid logging in, but obviously there are still some problems

    So do you have a better solution

    • v-lionel-msft's avatar
      v-lionel-msft
      Community Support

      Hi qiushi_zhai ,

       

      "I'm thinking about how to solve it. I don't need a button every time I open a page

      So I expect to use aad to avoid logging in, but obviously there are still some problems"

      Do you want to omit the login step every time you open the page? Unless you use the "Publish to web" method to create "Embed code".

       

      Best regards,
      Lionel Chen

      If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

       

      • qiushi_zhai's avatar
        qiushi_zhai
        Regular Visitor

        Do you want to omit the login step every time you open the page?

        Yes, that's the problem

         

        Unless you use the "Publish to web" method to create "Embed code".

         

        Can't I use "publish to web" without logging in?

        Or other ways to embed the web?