Forum Discussion
PowerBI Template - parametric REST API - anonymous connection issue
HI nhch ,
Some of rest API which required the anonymous authorization not able to receive credentials on the detail level.
For this scenario, you need to use 'relative path' options to use the root part receive the credentials and authorization, and use this for the API authoraztion that setting in the 'relative path'.
Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code
Regards,
Xiaoxin Sheng
In this case the authentication is given by the attribute in the "Header", not in the path, so i can't use the relative path for authentication.
Furthermore, I want to specify that the connection in the powerbi happens flowlesly, the issue is when i'm installing the app created by the Template.
There is a step in the installation process in wich PowerBi asks the user to populate the parameters, and to insert his token for authentication purpooses (and that's fine), after that it tries to connect to the data sources and, in doing so, it tries just to connect to the static path without using the authentication's token (the parameter).
The api throws an error and the user can't connect.
I hope this clarify the issue!
Thanks,
Thomas