[英]Connect to Sharepoint using HTTP connector in Logic App
I'm trying to send a REST call (POST) from a Logic App in Azure to Sharepoint, to create a documentlibrary for a given contact. 我正在尝试从Azure中的Logic App向Sharepoint发送REST调用(POST),以便为给定的联系人创建文档库。
This is what the HTTP connector looks like in my Logic App: 这就是我的Logic App中HTTP连接器的样子:
What I primarily need help with is the OAuth authentication in order to send this REST call. 我主要需要帮助的是OAuth身份验证,以便发送此REST调用。 What do the following attributes mean in this context, what would be an example for each one, and how would I go about finding my proper values for my situation? 以下属性在此上下文中意味着什么,每个属性的示例是什么,以及如何为我的情况找到适当的值?
Tenant 承租人
Audience 听众
ClientID 客户端ID
Secret 秘密
(Also, If anyone has a good suggestion for what Uri/body i should use to accomplish this POST call, that would also be very helpful.) (另外,如果有人对我应该用什么Uri / body来完成这个POST调用有一个很好的建议,这也会非常有帮助。)
Indeed, you can call SharePoint Rest API with Azure Logic Apps and AzureAD secured OAuth authentication. 实际上,您可以使用Azure Logic Apps和AzureAD安全OAuth身份验证调用SharePoint Rest API。 What you mainly miss is a certificate. 你主要想念的是证书。
Create it like described here for instance. 像这里描述的那样创建它。
Then you need the following parameters in your HTTP request: 然后,您需要在HTTP请求中使用以下参数:
That way it worked for me. 这样它对我有用。 Next step would be for sure to securely treat the parameters such as your Base64 certificate, the password, or even the Guid of your app registration. 下一步是确保安全地处理参数,例如您的Base64证书,密码,甚至是应用注册的Guid。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.