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
FlashCrowz
New Member

How to Generate Embed Token in pure JavaScript

Hi,

I am new to Power Bi and any help would be appreciated. So I want to do the following
I want to show reports in my Angular application that angular application is the multi-tenant application of users that do not belong to my organization. So I have next set up 

My Angular app is talking whit my API that API is using the token-based system to create token and manage tenets. I want for my users to see reports that I created so my API will talk with Power BI API to get token and pass it to Angular App and angular application will emend report from power bi, I was wondering what is the best practices to do this. Let's I want to use "Master user" or "Service principal" to authenticate to Power BI, Do each time I generate token with my "Master user" I always get new token and old token is squished or old token is still valid until expiration time? 

0 REPLIES 0

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.