Forum Discussion
PowerBI Template - parametric REST API - anonymous connection issue
UPDATE:
I tried to remove the relative path and it dosn't return 404.
Having a static path still don't work tho because when trying to connect it skip the attributes which are used for authentication purposes.
Any clue?
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
- nhch2 years ago
Helper I
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