我有一个C#组件,它调用一个安全端点(TLS1.2)。在探索将该组件移动到Azure (Logic )的选项时,如何将安全协议头信息添加到HTTP请求中。我可以添加头部信息,如'Content_Type‘等,但不太确定是否将安全协议信息添加到报头,也找不到多少有用的文章。提前感谢你给我的提示。
我的传出HTTP请求:
{
"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@company.com"
}
}C#代码:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 |
SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls;发布于 2018-09-22 23:55:03
对于需要与oauth受保护的端点通信的逻辑应用程序,我们通常称之为Azure函数。除了可以利用工作代码的C#解决方案之外,您还可以在密钥库中保护您的凭据,而不是在您的逻辑应用程序操作中使用纯文本。
https://stackoverflow.com/questions/52460241
复制相似问题