Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

POST request data sources that require basic authentication

Hello everyone! I've been trying to work with a datasource from an API that requires basic auth. The post request is as follows: url = <url>, postData = <request body>, headers = [#"Authorizatio...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi, Charlotte, thanks a lot for the reply!

     

    I did include the basic authorization option in the header, but still couldnt validate credentials for the data source, even when selecting to skip it. I figured out what was wrong though, it turns out that the web api that I am trying to use is not public and can only be accessed through a local network, meaning power bi service needed to go through my personal gateway to access the data source. What solved the problem was selecting the "Skip test connection" on the settings tab of the gateway, not in the data source credentials.