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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Open Dialogbox in Canvas App integrated in PowerbiReport opened in Teams App

Hello,
We have a use case where we have a Canvas App. In the Canvas app, we have an Iframe opening our web app in it. There we have to authenticate users using SSO. Now we cannot open SSO sites in the iframe as the content gets blocked. So we need to open a popup window (in the browser, it is a separate tab). Now, this Canvas app is used in Powerbi Report and if I open this Power Report in the web browser the new tab opens correctly with this line of code in the js

window.open(SSOSiteUrl, '_blank', 'width=800, height=800');
But when this Powerbi Report is opened in a Teams Desktop App it opens a regular browser and does not have the reference in the code and cannot close it.

Now for the other Teams App we have, we are using 
@microsoft/teams-js

and it offers a dialog box that we use to log in users with SSO but it does not work in Powerbi when opening in Teams App.

Is there any solution? 

0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.