Forum Discussion
BjoernLueers
6 years agoAdvocate II
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...
jcooke
6 years agoMicrosoft Employee
Both of those approaches appear to involve hard-coding secrets into the PBIX file, which is not good from a security perspective. Anyone who gets the PBIX gets my secret.
I would expect that the PBI Service would manage the API Keys with the same approach as with Basic Auth, where the secret is write-only (only the service can get at it).
Jason
Fakhruddin
2 years agoRegular Visitor
hey did you got any idea how to not hardcode credentials and use powerbi auth only for POST API call??