Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Power BI Report to be integrate with NodeJS REST api using JWT token with unlimited refresh. We will use powerbi-react-client & pass jwt token via embed report url from our custom application, that jwt token should be captured in M Code(Power query) and pass that JWT token to our NodeJS API service .
Hi @chandrasekarimp ,
it seems that there are some possible ways to achieve this, such as:
Using the Power BI JavaScript API to embed a report in your application and pass the JWT token as a query parameter in the embed URL. You can then use the Web.Contents function in Power Query to access the NodeJS REST api with the JWT token as a header.
Using the Power BI Node SDK to generate an embed token for a report and pass it to the powerbi-react-client component. You can then use the Web.Contents function in Power Query to access the NodeJS REST api with the JWT token as a header.
Using the Power BI REST API to generate an embed token for a report and pass it to the powerbi-react-client component. You can then use the Web.Contents function in Power Query to access the NodeJS REST api with the JWT token as a header.
More details: node.js - Node js App integration with power bi rest Api - Stack Overflow
Introducing the new Power BI JavaScript API | Microsoft Power BI Blog | Microsoft Power BI
If I have misunderstood your meaning, please provide more details.
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.