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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
ysapiyev
Responsive Resident
Responsive Resident

Automatically generate embed token in web app

Hi everyone,

I wanted to embed Power BI report in web page. I was able to do it with manually inserted embed token, how can I generate embed token automatically inside of web app?

 

Regards,

Yerkhan

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Yerkhan,

 

It seems you are talking about the demo PowerBI-JavaScript

1. Using the C# SDK, please refer to https://github.com/Microsoft/PowerBI-CSharp

2. Using the azure-activedirectory-library-for-js. Then call the api/power-bi/embedtoken.

3. Using other ADAL libraries, such as azure-activedirectory-library-for-python

 

Best Regards,
Dale

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

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Yerkhan,

 

It seems you are talking about the demo PowerBI-JavaScript

1. Using the C# SDK, please refer to https://github.com/Microsoft/PowerBI-CSharp

2. Using the azure-activedirectory-library-for-js. Then call the api/power-bi/embedtoken.

3. Using other ADAL libraries, such as azure-activedirectory-library-for-python

 

Best Regards,
Dale

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.