Authentication PowerBI Dashboard in onRender/onInit #176
Replies: 1 comment
-
To authenticate automatically within an iframe using PowerBI, you can indeed use JavaScript to handle the authentication process. However, it's important to note that handling passwords in client-side JavaScript can pose security risks, especially if they are hard-coded. Instead, PowerBI offers other authentication methods such as embedding tokens or Azure Active Directory (AAD) authentication, which are more secure. Here's how you could implement authentication using JavaScript: html Additionally, it's important to correct the comment mentioning Grafana version 10.0.1, as it seems irrelevant to the context of the PowerBI dashboard authentication. In summary, while it's technically possible to embed user credentials in the iframe URL for automatic authentication, it's highly discouraged due to security risks associated with exposing sensitive information. Instead, prioritize security by using recommended authentication methods such as OAuth 2.0 or Azure AD authentication when working with Power BI dashboards. These methods are typically facilitated through Microsoft Power BI development services like Power BI Embedded or the Power BI JavaScript API, ensuring secure authentication and interaction with Power BI content while adhering to best practices for data security and user privacy. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use a PowerBI dashboard with iframe, but I always have to authenticate with user/password.
Is it possible to make this authentication with onRender/onInit? For example, setting a service user and password to auto login.
HTML/SVG document that I use:
<iframe title="Dashboard" width="1140" height="541.25" src="https://app.powerbi.com/xxxxxxxxxxxxxxxx" frameborder="0" allowFullScreen="true"></iframe>Grafana version 10.0.1
Beta Was this translation helpful? Give feedback.
All reactions