团队留言卡发布操作忽略域中未允许的事件

问题描述

搜索了几乎所有的网络...这里的最后希望...;-)

连接器:忽略不在允许列表中的域中的事件

问题描述:

我们已经开发了Teams 365连接器。该连接器使用清单配置的传入Web挂钩发送消息卡。在此消息卡上,我们定义了POST操作。当我们按此操作时,应该对自定义REST端点执行REST API调用。当前的问题是,我们能够使用清单和配置页面成功添加连接器,并且能够成功向通道发送消息卡。但是当我们按下该操作时,根本不会调用REST端点,并且会收到“禁止消息”。

我们已使用门户网站https://outlook.office.com/connectors/home/login/#/publish注册了连接器 并且我们指定了:

"Do you want to enable actions on your Connector cards?" -> YES

"Actions URL" -> "https://teamsrestapi.ngrok.io/RestAPI/Action"

我们创建了清单,清单中包含正确的白名单:

"validDomains": [
    "teamsrestapi.ngrok.io"
  ]

我们正在使用从连接器门户获得的正确连接器ID。

到目前为止尝试的配置都没有运气:

We have enabled in the Teams 'Org-wide setting' -> Users can communicate with other Skype for Business and Teams users
We have enabled in the Teams 'Org-wide setting' -> Users can communicate with Skype users
We have added in the Teams 'Org-wide setting'  the whitelisted Domain -> teamsrestapi.ngrok.io is Allowed
We have tried to deploy the app as an organisation wide app by putting it into the store
We checked all other network blocks whitelists etc.
We tried not to use ngrok but a Azure Webapp

问题:

有人对如何将域放入正确的允许列表有想法吗?我们还尝试将非ngrok地址用作Azure Webapp,但存在相同的错误

调试日志: 下面我粘贴了一部分TEAMS调试日志:

020-08-27T11:43:49.581Z Inf        [Scenario]ext_actionable_card_http_post [step](1)stop (173ms/173ms)
2020-08-27T11:43:49.580Z Err        [O365ActionPaneController.makeHttpPOSTRequestForConnector()] Http invoke Failed: {"data":{"errorCode":"Forbidden"},"status":403,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"url":"https://teams.microsoft.com/api/mt/part/emea-02/beta/users/connectors/19:aaaaef3d98aaacfa817e3524bf5784f0@thread.tacv2;messageid=1598528625119/1598528625119/executeAction","data":{"inputParameters":[],"actionId":"aaaa4501-c054-49f4-b377-dc2b3f26c7d0","potentialAction":"{\"@type\":\"HttpPOST\",\"@i...
2020-08-27T11:43:49.579Z War        HTTP request  Failed: POST "https://teams.microsoft.com/api/mt/part/emea-02/beta/users/connectors/19:aaaaaf3d98f34cfa817e3524bf5784f0@thread.tacv2;messageid=1598528625119/1598528625119/executeAction",status: 403,response: {"errorCode":"Forbidden"},errorCode: Forbidden,requestId: undefined,correlationId: undefined,afdCorrelationId: Ref A: FB26054A0C7546D48003683B610E009D Ref B: AM3EDGE0714 Ref C: 2020-08-27T11:43:49Z
2020-08-27T11:43:49.578Z Inf        [Scenario]ext_actionable_card_http_post [step](0)error (164ms)
2020-08-27T11:42:57.574Z Inf        [Scenario]ext_sdkHelper_created [step](4)ext_sdkHelper_apiInvoked (2057ms)
2020-08-27T11:42:57.477Z Err        ngClickDecorator: value not found in enum type. value: 
2020-08-27T11:42:55.529Z Inf        Connectors: Ignoring event from domain not in allow-list - https://teamsrestapi.ngrok.io
2020-08-27T11:42:55.517Z Inf        [Scenario]ext_sdkHelper_created [step](3)ext_sdkHelper_apiInvoked (82ms)
2020-08-27T11:42:55.487Z Inf        Connectors: Ignoring event from domain not in allow-list - https://teamsrestapi.ngrok.io
2020-08-27T11:42:55.474Z Inf        Connectors: Ignoring event from domain not in allow-list - https://teamsrestapi.ngrok.io
2020-08-27T11:42:55.453Z Inf        Connectors: Ignoring event from domain not in allow-list - https://teamsrestapi.ngrok.io
2020-08-27T11:42:55.444Z Inf        Connectors: Received event - handleMessageSuccess
2020-08-27T11:42:55.436Z Inf        Connectors: Received event - unhandledMessage
2020-08-27T11:42:55.435Z Inf        [Scenario]ext_sdkHelper_created [step](2)ext_sdkHelper_apiInvoked (53ms)
2020-08-27T11:42:55.427Z Inf        Connectors: Received event - unhandledMessage
2020-08-27T11:42:55.418Z Inf        Connectors: Received event - handleMessageSuccess
2020-08-27T11:42:55.406Z Inf        Connectors: Received event - handleMessageSuccess
2020-08-27T11:42:55.386Z Inf        Connectors: Ignoring event from domain not in allow-list - https://teamsrestapi.ngrok.io

使用的清单:

    {
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.6/MicrosoftTeams.schema.json","manifestVersion": "1.6","id": "aaf6fb9b-5d8c-4c12-b5e1-3ea8c5d8a7d1","version": "1.0.14","packageName": "com.Teams.Connector.WEB","developer": {
    "name": "Developer","websiteUrl": "https://www.xxxx.com","privacyUrl": "https://www.xxxx.com","termsOfUseUrl": "https://www.xxxx.com"
  },"description": {
    "full": "OpsLogix Teams Connector WEB","short": "Connector WEB"
  },"icons": {
     "color": "color.png","outline": "outline.png"
  },"connectors": [
    {
      "connectorId": "aaaaabc5-8b41-41b3-94f1-1bdb70e2cb84","scopes": [
        "team"
      ],"configurationUrl": "https://teamsrestapi.ngrok.io/configuration"
    }
  ],"name": {
    "full": "Teams.Connector.WEB","short": "Teams.Connector.WEB"
  },"accentColor": "#FFFFFF","validDomains": [
    "teamsrestapi.ngrok.io"
  ]
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)