Forum Discussion
ODBC connector and OAuth flow
Hi Ferna ,
If you are connecting to data from the API, you can consider using your own editing Web.Content function to write the parameters in the request header, and then do PQ customized data processing after you successfully get the data.
Web.Contents - PowerQuery M | Microsoft Learn
For example:
let url = ..., headers = [#"Content-Type" = "application/json"], postData = Json.FromValue([x = 235.7, y = 41.53]), response = Web.Contents( url, [ Headers = headers, Content = postData ] ), jsonResponse = Json.Document(response) in jsonResponse
This is the related document, you can view this content:
Pass Parameters to Identity Providers (auth0.com)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Ferna2 years agoFrequent Visitor
Hi Liu,
I'm querying an OpenSearch database, and the uses case is many users that has its credentials and IdP endpoint. They should insert the parameter manually if they authenticate with Oauth2, otherwise is required a compiling and build phase of ".mez" file for each of these users. The IdP mostly is "static" but user and secret can vary significantly.