简体   繁体   English

使用Logic App中的HTTP连接器连接到Sharepoint

[英]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请求中使用以下参数:

  • Tenant: YourTenant.onmicrosoft.com 租户:YourTenant.onmicrosoft.com
  • Audicence: https://YourTenant.sharepoint.com Audicence: https ://YourTenant.sharepoint.com
  • ClientID: GUID of your registered Azure App registration ClientID:您注册的Azure App注册的GUID
  • Credential Type: Certificate 凭证类型:证书
  • Pfx: Your whole certificate as Base64Encoded string (for simplicity open with Notepad++ and conver to Base64 via Mime Tools) Pfx:您的整个证书为Base64Encoded字符串(为简单起见,使用Notepad ++打开并通过Mime Tools转换为Base64)
  • Password: The Password to your certificate 密码:证书的密码

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.

相关问题 Azure 逻辑应用自定义连接器 - SOAP 到 REST - 将 HTTP 标头从 REST 传递到 SOAP 请求 - Azure Logic App Custom Connector - SOAP to REST - Pass HTTP header from REST to SOAP request 防止逻辑应用 http 端点泛洪 - Prevent flooding of Logic App http endpoint 逻辑应用程序 - 对 API 的 HTTP 连接器 POST 调用返回 202 和位置标头,但轮询返回 404 - Logic apps - HTTP connector POST call to API returns 202 and location header but the polling returns 404 android使用mysql-connector直接连接到mysql数据库 - android connect to mysql database directly using mysql-connector 如何使用不使用SharePoint的外部Rest Web服务连接Office 365-SharePoint版本站点? - How to connect Office 365 - SharePoint edition site using a external Rest web service made without using SharePoint? 使用HTTP状态代码时区分基础架构和业务逻辑 - Discriminating between infrastructure and business logic when using HTTP status codes 无法使用angularJS $ http服务从SharePoint中提取剩余数据 - Unable to pull rest data from SharePoint using angularJS $http service java接口连接到共享点 - java interfaces to connect to sharepoint 如何将内容范围 header 包含到来自逻辑应用程序的 http 请求中? - How to include content-range header to an http request from Logic app? 使用直到条件的 Azure 逻辑应用 API 分页 - Azure Logic App API Pagination using Until condition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM