Forum Discussion

BjoernLueers's avatar
BjoernLueers
Advocate II
6 years ago

Authentication Method "Web API" not supported in Power BI Service

Currently the authentication method "API Token" does not seem to be supported in the Power BI Service. 

I used the ApiKeyName attribute from the Web.Contents method to declare the name of the header attribute. This worked perfectly in Power BI Desktop, i was asked to authenticate, clicked Web API and entered the API token. 

In the Power BI Service however there is no Web API Authentication method and I found no way to log in using the methods provided. 

Even worse is that i found no way at all to refresh the dataset in the service afterwards. Even hardcoding the API token into the the request URL did not work. The service would always ask for the API token:

"Failed to update data source credentials: A web API key credential is required when a web API key name is provided", even though I removed the ApiKeyName attribute and published the report with a different name in a different workspace. As if the Power BI service remembered that the source required an API token.

Only by using a different Power BI Service user I could finally resolve this. The message did not appear and I could authenticate anonymously.

5 Replies