Forum Discussion
seijim
Microsoft Employee
11 years agoHow to use Power BI Rest API without GUI authentication (redirect uri)
I'm developing an Azure worker role application which pushes data to PowerBI.com service. I referred a C# sample client application via Git Hub. But it authenticates using GUI (redirect uri) during ...
- 10 years ago
You can use the user name and password flow that AAD supports. This 3rd party client library has an example: https://github.com/Vtek/PowerBI.Api.Client
dharamgoyal
8 years agoFrequent Visitor
Hi skaratela,
I tried this https://login.microsoftonline.com/common/oauth2/token with param in post method but getting below error-
"error": "invalid_grant",
"error_description": "AADSTS65001: The user or administrator has not consented to use the application with ID 'xxxxxxxxxxxxxxxxxxxx' named 'LSNTestAPP'. Send an interactive authorization request for this user and resource.\r\nTrace ID: ac36a442-1603-479b-aad5-b8c75b0f4300\r\nCorrelation ID: 4cd0780a-2184-46ab-8d91-8a83987c5e72\r\nTimestamp: 2017-12-22 06:14:36Z",
skaratela
8 years agoFrequent Visitor
Hi dharamgoyal it seems like perhaps the permissions in the Native Application in Azure haven't been set correctly. Also, are you using the same account for both the Native Application and also that same account when you are making the post request?
Finally, have you bundelled your dashboard into a power BI application and made the owner of that app the same account as above?
I know, it's so confusing.
Cheers
Finally, have you bundelled your dashboard into a power BI application and made the owner of that app the same account as above?
I know, it's so confusing.
Cheers