sandeepstw / PowerBIembedTokenSourceCode

Asp.net Rest API Power BI Embed token Generates an embed token to view the specified dashboard from the specified workspace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Power BI Embed Token Asp.net Rest API SourceCode

Asp.net Rest API Power BI Embed token Generates an embed token to view the specified dashboard from the specified workspace.

Setting up the Power BI and Azure Environment

Create PowerBI App in Azure using https://dev.powerbi.com/apps and assign appropriate permission for reports. Register Power BI Azure APP

Assign Api Permission in Azure

Login to http://portal.azure.com/, got Active Directory and App Registration part and select created App. In left navigation select API Permissoin. And Grand Admin consents. Also if you are getting error - AADSTS65001: The user or administrator has not consented to use the application....

Grand Admin Consents

Update web config

Update given values in web config before running application. Power BI Embed token web config

AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'

IF you are getting this error verify redirect url and and Default client type. Redirect url must be same from which you are callling api. Redirect URL

Default client type

Default client type

For PowerBI consultation connect us on info@softechworld.com

About

Asp.net Rest API Power BI Embed token Generates an embed token to view the specified dashboard from the specified workspace.


Languages

Language:JavaScript 88.5%Language:C# 7.3%Language:HTML 3.8%Language:CSS 0.3%Language:ASP 0.0%