Forum Discussion

lubosbednar's avatar
lubosbednar
Helper I
9 years ago
Solved

Auto refresh URL with token authentication

I'm having troubles to set up auto refresh when I use http request using url with token authentication. It works in power bi desktop, but I cannot set up auto refresh in power bi service. It doesn't accept Anonymous Authentication method.

 

Data are extracted as follows:

= Web.Contents("https://app.idoklad.cz/developer/api/IssuedInvoices?PageSize=1000000&Page=1",[Headers=[#"SecureToken&quot; = "<mytoken>",#"X-App" = "iSmart",#"X-App-Version" = "1.0"]])

 

Url shows only https://app.idoklad.cz/developer/api/IssuedInvoices?PageSize=1000000&Page=1, without authentication part, so it is obvious that it doesn't accept Anonymous authentication. But how I can provide token using power bi service?

 

Thanks for help,

Lubos

  • lubosbednar

     

    As mentioned in this similar thread, this is not possible due to constraints with the way Web.Contents stores credentials. And there are also some workaround mentioned in that thread, please go and try to see if the solution works.:smileyhappy:

     

    Regards

2 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Microsoft Employee

    lubosbednar

     

    As mentioned in this similar thread, this is not possible due to constraints with the way Web.Contents stores credentials. And there are also some workaround mentioned in that thread, please go and try to see if the solution works.:smileyhappy:

     

    Regards