Asp.net Rest API Power BI Embed token Generates an embed token to view the specified dashboard from the specified workspace.
Create PowerBI App in Azure using https://dev.powerbi.com/apps and assign appropriate permission for reports.
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....
Update given values in web config before running application.
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.
For PowerBI consultation connect us on [email protected]