cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mbalcarek Frequent Visitor
Frequent Visitor

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
Community Support Team
Community Support Team

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

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.
Mbalcarek Frequent Visitor
Frequent Visitor

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

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. 

Highlighted
Mbalcarek Frequent Visitor
Frequent Visitor

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

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.