AtlasPublicPolicy / power-bi-embedded

Use Power BI Embedded to embed dashboards, reports, report visuals, Q&A, and tiles in your WordPress website.
GNU General Public License v3.0
49 stars 34 forks source link

Refresh Token to keep Reports live #41

Open BusinessDynamics opened 1 month ago

BusinessDynamics commented 1 month ago

Hi, very nice plugin you have made. I have tested it with a few reports. However I do keep authorization issues. First I have been looking in the data connections, but those seem fine now. Supposedly there is something about a refresh token that needs to be activated to keep reports alive. Have you used that somewhere?

Best, Geert

BusinessDynamics commented 1 month ago

My bad for getting confused too soon. After looking into the code I realize that the API actually gets an acces_token and refresh_token. Microsoft is not making it easier nowadays with all the movements to Fabric. I have to figure out if and what makes the trigger go and if something in Wordpress is preventing it. Or the Azure app.

portugalmo commented 2 weeks ago

Hi Geert,

Thanks for the feedback. Are you able to see the reports at first but then get a timeout error after it's been open for a while? Do you know how long it takes roughly to get the refresh error?

Thanks, Mohit

BusinessDynamics commented 2 weeks ago

Well, lately I also had an issue with Fabric. Moved to PPU with Datamarts. In most cases in a few hours I think, have not measured it exactly. I have a new one up now, that I will try to check.

Best, Geert

On 24 Oct 2024, at 16:08, Mohit Mendiratta @.***> wrote:

Hi Geert,

Thanks for the feedback. Are you able to see the reports at first but then get a timeout error after it's been open for a while? Do you know how long it takes roughly to get the refresh error?

Thanks, Mohit

— Reply to this email directly, view it on GitHubhttps://github.com/AtlasPublicPolicy/power-bi-embedded/issues/41#issuecomment-2435398844, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDXRXZTYM767CGUQQUVKZDZ5D5MBAVCNFSM6AAAAABPWYPKIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZVGM4TQOBUGQ. You are receiving this because you authored the thread.Message ID: @.***>

BusinessDynamics commented 2 weeks ago

Hi Mohit,

I am not sure what changed to be honest. But it looks like my reports are still online. See this example on Monthly Trend Report on Asylum Influx in Germany

Would it be an option to make a feature in the plugin to easier post reports with multiple pages such as I have here? For example a Power BI block with the same features as the Power BI post type? Or are you still using it yourself? I think this will be a growing thing in the future now Msft is promiting to embed.

portugalmo commented 2 weeks ago

Hi Geert,

We do continue to use the plugin and are able to show multi-page reports with the current setup! See here for an example: https://atlaspolicy.com/evaluateny/

We basically put a page navigator element on top of each page and that allows the user to toggle between pages. Let me know if that works for your needs!

Thanks, Mohit