Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
We have a main site built with React and a Power Pages site. The Power Pages site is embedded in the main site via an iframe. The main site uses Azure B2C for authentication, and we want the Power Pages site to automatically log in using the same Azure B2C.
I've implemented passing the authentication token from the main website to the embedded Power Pages site using the postMessage API. Here’s a brief summary of the approach I’ve followed:
Main Website Code:
iframe.contentWindow.postMessage({ authToken: authToken }, 'https://powerpages.example.com');
Power Pages Custom Javascript:
window.addEventListener('message', function(event) {
if (event.origin === 'https://mainwebsite.com') {
var authToken = event.data.authToken;
// Process token here
}
});
Despite implementing this, the token is still not being passed correctly to the Power Pages iframe. Has anyone encountered a similar issue or have any suggestions on what might be going wrong?
Thanks in advance for your help!
Solved! Go to Solution.
Hi ,
This issue is more closely related to Azure B2C.To move forward and further assist you in resolving this issue, we need a Q&A thread.
Please create a new Q&A post at https://learn.microsoft.com/en-us/answers/questions/ask/ and Add Microsoft Entra ID tag.
Regards,
Chaithra.
HI @bhartisharma_in ,
We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi @bhartisharma_in ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi @bhartisharma_in ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the issue got resolved? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi Chaithra,
Thank you for following up. Unfortunately, I am still facing the same issue and haven't found any helpful information on the Q&A post either.
Regards,
Bharti
Hi ,
This issue is more closely related to Azure B2C.To move forward and further assist you in resolving this issue, we need a Q&A thread.
Please create a new Q&A post at https://learn.microsoft.com/en-us/answers/questions/ask/ and Add Microsoft Entra ID tag.
Regards,
Chaithra.
Hi @v-echaithra,
Thank you for the suggestion. I have created the Q&A post and added the Microsoft Entra ID tag as requested.
Regards,
Bharti
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
2 |