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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mbalcarek
Helper I
Helper I

Power BI Embedded - Avoid sharing application secret or passwords when getting embed token

Hello,

I recently watched Ted Pattison's "Using App-only Authentication with Power BI Embedding with Ted Pattison" video https://www.youtube.com/watch?v=ZhMfpdXLIw0 .

 

This discusses a newer way to authenticate using a service principal rather than user credentials.

It seems to me that in the JavacScript world, when getting the embed token in either case, you are at some point required to divulge either your App Master credentials (old approach), or you app secret or certificate password (newer approach). How do we avoid disclosing these items? I do not see code examples that show this. I suspect we need to use some encryption / decryption technique? Is there a standard approach?

 

Thank you

3 REPLIES 3
Mbalcarek
Helper I
Helper I

To further clarify my question, I was hoping to use my Power BI Embedded javascript implementation in a SharePoint spfx application as a sharepoint web part, where the user is authenticated by SharePoint and does not need to have a Power BI pro license. 

v-cherch-msft
Employee
Employee

Hi @Mbalcarek 

Please check if this article could help you.I would suggest you post your question in Developer community to get further help.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Cherie, Thank you for your response. The article mentioned is not for Power BI "Embedded". It prompts the user for Power BI Credentials, which should not happen in an embedded scenario. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors