Satya Azure
Satya Azure

Reputation: 479

Azure Logic Apps - Calling a secured end point (TLS)

I have a C# component that calls a secured end point (TLS 1.2). As I am exploring the options of moving this component to Azure (Logic Apps) how do I add the security protocol header information to the HTTP request. I could add the header information like 'Content_Type' etc but not really sure of adding the security protocol info to header and couldn't find much helpful articles. Thanks in advance for the helpful hints.

My outgoing HTTP Request:

{
    "uri": "https://xxxx/v3/oauth2/token",
    "method": "POST",
    "headers": {
        "Content_Type": "application/x-www-form-urlencoded",
        "client_id": "xxxxxxxxxxx",
        "client_secret": "5xxxxxxxxxx9",
        "grant_type": "password",
        "password": "MyPassword2018",
        "username": "[email protected]"
    }
}

C# code:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | 
SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | 
SecurityProtocolType.Tls;

Upvotes: 1

Views: 1877

Answers (1)

Josh
Josh

Reputation: 4458

For logic apps which need to talk to oauth protected endpoints we typically call an Azure function. In addition to having a C# solution which will let you leverage working code, you would also be able to secure your credentials in key vault instead of having them in plain text in your logic app action.

Upvotes: 1

Related Questions