Embedding Power BI Reports using Service Principal with Certificate with Microsoft .NET and React.

Prashanth Kumar
10 min readJun 24, 2024

About PowerBI

Power BI Embedded is an Azure service that enables developers to add visualizations and reports to web or mobile applications, Power BI Embedded is intended for applications that are provided for third-party use. Power BI Embedded uses an application token authentication model to control access to the Power BI workspaces used by the application

Scenario

In today’s world of modern web development, For any Organization secure handling of authentication tokens and sensitive data is critical. Here we will be talking more about PowerBI embedding into UI using ServicePrincipal with certificate rather than using Secrets. We will see how we can embed PowerBI into React with Microsoft .NET Core (as backend) API with the help of generating JWT (tokens) and embedding URLs for Power BI reports.

Problem Statement:

One of the main reason for writing this article is because most of the articles over Internet which talks about Embedding PowerBI using Service Principal with Secret however not many which describes the way to use Certificate.

Another Intention is mainly for Management overhead of SPN’s if your Project is using many SPN’s with different authentication methods such as with Certificates as well as Secrets it is difficult to control and maintain them as requester/members stays with the…

--

--

Prashanth Kumar
Prashanth Kumar

Written by Prashanth Kumar

IT professional with 20+ years experience, feel free to contact me at: Prashanth.kumar.ms@outlook.com

No responses yet