Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Hadi14
Regular Visitor

how to embed power bi report in php application without second authentication

I have a web application that I want to embed reports from my organization's Power BI server, which is on the organization's domain controller. I embedded the report, but it still requires authentication after opening the page containing the report. How can I solve this problem??
 
 
 
5 REPLIES 5
Poojara_D12
Super User
Super User

Hi @Hadi14 

To enable seamless authentication for embedded Power BI reports in your web application using Active Directory (AD), you need to configure Windows Authentication and Kerberos Delegation. Since your Power BI Report Server (PBIRS) is hosted on your organization's domain controller, you can leverage Single Sign-On (SSO) to allow users to access embedded reports without re-authenticating. First, ensure that PBIRS is configured to use Windows Authentication (NTLM or Kerberos) by checking the settings in Reporting Services Configuration Manager. Next, if your web application is hosted on IIS, enable Windows Authentication and disable Anonymous Authentication to pass user credentials automatically. If the web application and PBIRS are on different servers, you must configure Kerberos Constrained Delegation (KCD) by setting up Service Principal Names (SPNs) for both the web server and PBIRS in Active Directory and allowing delegation for the application. Additionally, ensure that your web application correctly passes user credentials using the fetch API with credentials: 'include', allowing the browser to send authentication tokens automatically. You may also need to adjust browser settings for NTLM authentication in Chrome, Edge, or Firefox. If your application is external or on a different domain, consider using a reverse proxy (such as NGINX) or Azure AD Application Proxy to enable SSO. This setup ensures that users authenticated within the organization’s network can seamlessly access embedded Power BI reports without additional login prompts.

 

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

hi @Poojara_D12 

thank you very much for reply. I followed the steps but it always returns to the web portal. Even though the report address is correct

i dont know how to fix it.

Hadi14
Regular Visitor

we have Active Directory in our organization.

i want to use it. Is this possible?

nilendraFabric
Super User
Super User

Hello @Hadi14 

 

 

 

To embed a Power BI report in a PHP application without requiring secondary authentication, you can implement the “Embed for your customers” (App Owns Data) solution using Azure Active Directory (AAD) service principals.




https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers

 

I don't want to use Azure.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.