Custom Tab user authentication / SSO with Power BI

%3CLINGO-SUB%20id%3D%22lingo-sub-2208385%22%20slang%3D%22en-US%22%3ECustom%20Tab%20user%20authentication%20%2F%20SSO%20with%20Power%20BI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2208385%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20bring%20in%20a%20Power%20BI%20report%20to%20the%20custom%20Teams%20App%20(via%20app%20studio).%3C%2FP%3E%3CP%3EWhen%20using%20the%20App%20and%20navigating%20to%20one%20of%20the%20Power%20BI%20tabs%20(these%20are%20using%20the%20standard%20PBI%20embed%20to%20website%2Fportal%20url)%2C%26nbsp%3B%20I%20am%20presented%20with%20the%20PBI%20sign-in%20screen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RyanBentham_0-1615714829975.png%22%20style%3D%22width%3A%20291px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F263469iA939A4BD26D14720%2Fimage-dimensions%2F291x177%3Fv%3Dv2%22%20width%3D%22291%22%20height%3D%22177%22%20role%3D%22button%22%20title%3D%22RyanBentham_0-1615714829975.png%22%20alt%3D%22RyanBentham_0-1615714829975.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20hoping%20the%20sign-in%20wouldn't%20be%20required%20given%20I'm%20already%20in%20the%20teams%20app%20using%20my%20Azure%20AD%20credentials.%26nbsp%3B%20%26nbsp%3B%20If%20you%20use%20the%20official%20Microsoft%20Power%20BI%20teams%20app%2C%26nbsp%3B%20or%20bring%20in%20a%20PBI%20report%20via%20a%20teams%20channel%20tab%2C%26nbsp%3B%20they%20display%20the%20reports%20with%20no%20issue%20and%20do%20not%20require%20additional%20sign-in.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20found%20that%20this%20only%20happens%20in%20the%20teams%20desktop%20app%2C%26nbsp%3B%20when%20using%20my%20app%20in%20teams%20online%2C%26nbsp%3B%20the%20report%20just%20loads%20instantly%20as%20expected%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20hit%20the%20Sign-In%20button%20it%20attempts%20to%20take%20me%20to%20a%20webpage%20but%20the%20webpage%20barely%20loads%20before%20it%20closes%20after%20a%20few%20milliseconds.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20less%20than%20ideal%20workaround%20(for%20teams%20desktop)%20I've%20discovered%20is%20that%20if%20I%20add%20a%20website%20tab%20to%20one%20of%20my%20teams%20for%20signing%20into%20PBI%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eeg%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RyanBentham_1-1615715487432.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F263470i2815BFF4CAD7409B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22RyanBentham_1-1615715487432.png%22%20alt%3D%22RyanBentham_1-1615715487432.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RyanBentham_3-1615715713481.png%22%20style%3D%22width%3A%20378px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F263472iE2F4C1A9328ED1AB%2Fimage-dimensions%2F378x351%3Fv%3Dv2%22%20width%3D%22378%22%20height%3D%22351%22%20role%3D%22button%22%20title%3D%22RyanBentham_3-1615715713481.png%22%20alt%3D%22RyanBentham_3-1615715713481.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20will%20allow%20me%20to%20sign-into%20my%20Power%20BI%20account.%26nbsp%3B%20Then%20if%20I%20go%20back%20to%20my%20custom%20app%2C%26nbsp%3B%20%26nbsp%3Bthe%20report%20will%20now%20be%20visible.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RyanBentham_2-1615715593459.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F263471iC900373F9D375634%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22RyanBentham_2-1615715593459.png%22%20alt%3D%22RyanBentham_2-1615715593459.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20see%20there%20is%20lots%20of%20documentation%20around%20adding%20SSO%20to%20the%20custom%20apps%2C%26nbsp%3B%20but%20given%20that%20the%20SSO%20works%20for%20teams%20online%20I%20was%20hoping%20there%20would%20be%20easy%20way%20to%20prevent%20the%20user%20having%20to%20sign-in%20again%20within%20teams%20desktop%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20much%20appreciated%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2208385%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I am trying to bring in a Power BI report to the custom Teams App (via app studio).

When using the App and navigating to one of the Power BI tabs (these are using the standard PBI embed to website/portal url),  I am presented with the PBI sign-in screen.

 

RyanBentham_0-1615714829975.png

 

I was hoping the sign-in wouldn't be required given I'm already in the teams app using my Azure AD credentials.    If you use the official Microsoft Power BI teams app,  or bring in a PBI report via a teams channel tab,  they display the reports with no issue and do not require additional sign-in. 

 

I've found that this only happens in the teams desktop app,  when using my app in teams online,  the report just loads instantly as expected

 

If I hit the Sign-In button it attempts to take me to a webpage but the webpage barely loads before it closes after a few milliseconds.

 

A less than ideal workaround (for teams desktop) I've discovered is that if I add a website tab to one of my teams for signing into PBI:

 

eg 

 

RyanBentham_1-1615715487432.png

 

RyanBentham_3-1615715713481.png

 

 

This will allow me to sign-into my Power BI account.  Then if I go back to my custom app,   the report will now be visible. 

 

RyanBentham_2-1615715593459.png

 

I can see there is lots of documentation around adding SSO to the custom apps,  but given that the SSO works for teams online I was hoping there would be easy way to prevent the user having to sign-in again within teams desktop

 

Any help would be much appreciated

 

 

 

0 Replies