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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.