'Power BI report timeout embedding in web page

I have a Power BI pro account and I generated a PBI report (called "TEST_REPORT") in https://app.powerbi.com.

I need to embed this report in a web page to show it in a display and refreshing it with a simple HTML refresh (not public share).

Using: File => Embed report => Web site or portal in https://app.powerbi.com/ I generated this code:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Sample pbi embedding</title>
<META HTTP-EQUIV=”Refresh” CONTENT=”5; url=https://app.powerbi.com/reportEmbed?reportId=0xxxxxxxxx&autoAuth=true&ctid=yyyyyy&config=zzzzzzzzzz”> 
</head>

<body>
<iframe width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?reportId=0xxxxxxxxx&autoAuth=true&ctid=yyyyyy&config=zzzzzzzzzz" frameborder="0" allowFullScreen="true"></iframe>
</body>
</html>

The first time I call the web page via browser, I authenticate with my PBI account credentials.

The timeout problem: after about one hour, the session expires and I need to authenticate again to view the report.

Can you show me all steps, with example, to set the timeout to 23 hours for the report in order to avoid further authentications?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source