Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to securely store and use token and secret for API request in Power Query M ?

Hello all,   I have successfully connected to an online service with an API request with token and secret, see example below. However, I believe storing the token and secret in the Power Query M co...
  • artemus's avatar
    artemus
    3 years ago

    Oh, sorry about that... didn't realize that POST didn't support authentication in Web.Contents. I don't know any use of keyvault, and you would likely run into the same issues you face here using it.

     

    I think the only option you would have is to write your own connector, which is given much more freedom on how it operates. Note, that if you write your own connector you cannot publish your report online unless you use a gateway (in which case you might as well just store the secret on the gateway machine and configure access to that speratly). Also, note that this does not work with importing data into Excel.