Forum Discussion
Embed Power BI Paginated Report from Power BI Report Server (On Premise) in ASP.Net Core MVC Applica
- 1 year ago
Hi Deiva
Yes, it is possible to embed Power BI reports hosted on Power BI Report Server (On-Premises) into an ASP.NET Core MVC web application using Windows Authentication, but there are important considerations to keep in mind. Power BI Report Server uses Windows Authentication (Integrated Security) by default, which means it relies on Active Directory credentials to control access to reports. To embed these reports securely within your web app, you typically use an iframe that points to the report URL on the report server. However, since the report server enforces Windows Authentication, the user's browser must be able to automatically pass their Windows credentials to the server (using mechanisms like Kerberos or NTLM). This seamless authentication usually works best in intranet environments where users are logged into a domain-joined machine and browsers are configured to allow automatic login. If users are external or not domain-joined, additional configuration such as reverse proxies or explicit credential passing might be needed. From the application side, you don’t embed the report using Power BI REST APIs (which are primarily for Power BI Service), but rather you generate the correct report server URL and embed it in an iframe or web control, ensuring the web server and client browsers support and properly negotiate Windows Authentication. While this approach is feasible, it requires careful configuration of both your web server, the report server, and browser settings to ensure authentication flows smoothly and reports render without repeated login prompts.
Hi Deiva
Yes, it is possible to embed Power BI reports hosted on Power BI Report Server (On-Premises) into an ASP.NET Core MVC web application using Windows Authentication, but there are important considerations to keep in mind. Power BI Report Server uses Windows Authentication (Integrated Security) by default, which means it relies on Active Directory credentials to control access to reports. To embed these reports securely within your web app, you typically use an iframe that points to the report URL on the report server. However, since the report server enforces Windows Authentication, the user's browser must be able to automatically pass their Windows credentials to the server (using mechanisms like Kerberos or NTLM). This seamless authentication usually works best in intranet environments where users are logged into a domain-joined machine and browsers are configured to allow automatic login. If users are external or not domain-joined, additional configuration such as reverse proxies or explicit credential passing might be needed. From the application side, you don’t embed the report using Power BI REST APIs (which are primarily for Power BI Service), but rather you generate the correct report server URL and embed it in an iframe or web control, ensuring the web server and client browsers support and properly negotiate Windows Authentication. While this approach is feasible, it requires careful configuration of both your web server, the report server, and browser settings to ensure authentication flows smoothly and reports render without repeated login prompts.