Reputation: 343
I'm integrating services using Azure logic apps. One of the flows requires calls from within the Logic Apps towards a HTTP endpoint that requires digest authentication.
It works as follows using curl:
curl --digest --user "XX:YY" http://<URI>
However, Logic Apps do not seem to support digest authentication.
Is there any way around this?
Is there any way to call a curl request from Azure Logic Apps? Maybe through a function?
Upvotes: 0
Views: 661
Reputation: 15754
Yes, currently digest authentication is not supported in logic app. As you mentioned, we can use azure function in logic app and transfer the url as a parameter to the function. In function, you can refer to the code below to implement digest authentication.
WebRequest request = HttpWebRequest.Create(url);
var credentialCache = new CredentialCache();
credentialCache.Add(
new Uri(url), // request url
"Digest", // authentication type
new NetworkCredential("user", "password") // credentials
);
request.Credentials = credentialCache;
Upvotes: 1