Forum Discussion

Deiva's avatar
Deiva
Frequent Visitor
1 year ago
Solved

Embed Power BI Paginated Report from Power BI Report Server (On Premise) in ASP.Net Core MVC Applica

Can we Embed Power BI Report from Power BI Report Server (On Premise) in ASP.Net Core MVC Web Application using windows authentication? Or Embed reports into iframe using windows authentication ?

  • 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.

     

3 Replies

  • 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.

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, Deiva 

    In Power BI Service, there are programs that embed paginated reports into personal websites or websites:

    Embed paginated reports in your embedded analytics app - Power BI | Microsoft Learn

    For an Power BI report server, I think you can generate and render an html page in your website or page that points to the paginated report URL on the Power BI Report Server.

     

     

    Best Regards

    Jianpeng Li

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

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Deiva 

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.