0

问题

我正在尝试使用自定义连接器构建可配置的团队选项卡,但在安装团队应用程序并尝试配置连接器时遇到严重问题。我创建了标签应用程序,它们运行良好。但是连接器本身或带有选项卡的连接器无法配置。

连接器自定义配置页面将在新窗口中打开并显示配置页面,但 Teams SDK 未初始化。该microsoftTeams.initialize()功能似乎没有做任何事情。函数的回调microsoftTeams.settings.setSettings(settings)microsoftTeams.settings.getSettings()永远不会被调用。

我已经尝试了几十个示例以及 node.js 和 csharp 项目。我尝试在团队应用程序构建器、哟团队和 VSCode 团队工具包中构建连接器。我什至尝试了不同版本的团队 SDK。没区别。

我阅读了所有 SO 问题和 Teams SDK github 问题,但这些建议或解决方案都没有产生任何影响。

有谁知道自定义创建的 Office 365 连接器是否仍然可以在 Teams 中使用,或者我做错了什么?

会不会是我的沙盒团队/办公环境?

这是我的配置:

  • 根据文档创建了一个带有假用户 + Azure 的沙盒 Office/Teams 开发环境。我还没有尝试过生产 Teams/Office
  • 更改了 Teams 管理员设置以允许侧载
  • 在 outlook.office.com 上创建了连接器注册(多次创建,未编辑)。
  • 创建连接器配置页面(以几种不同的方式)托管在 ngrok 上(和天蓝色 - 没有区别)
  • 在“管理您的应用程序”->“上传自定义应用程序”中上传的应用程序
  • 选择一个团队频道来安装应用程序
  • 团队频道中配置的连接器
  • 单击“访问站点进行安装”链接
  • 配置页面打开,但 Teams SDK 均不起作用 - 我在各处添加了 console.log 以进行验证

显现:

这是默认的快速脚手架yo teams可配置选项卡和连接器

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
  "manifestVersion": "1.9",
  "id": "c8012880-98bc-11ec-bee3-ab9042a78ecb",
  "version": "1.0.1",
  "packageName": "tabappl",
  "developer": {
    "name": "mytest",
    "websiteUrl": "https://48fb-80-233-63-141.ngrok.io",
    "privacyUrl": "https://48fb-80-233-63-141.ngrok.io/privacy.html",
    "termsOfUseUrl": "https://48fb-80-233-63-141.ngrok.io/tou.html"
  },
  "name": {
    "short": "tabappl",
    "full": "tabappl"
  },
  "description": {
    "short": "TODO: add short description here",
    "full": "TODO: add full description here"
  },
  "icons": {
    "outline": "icon-outline.png",
    "color": "icon-color.png"
  },
  "accentColor": "#D85028",
  "configurableTabs": [
    {
      "configurationUrl": "https://48fb-80-233-63-141.ngrok.io/tab1Tab/config.html?name={loginHint}&tenant={tid}&group={groupId}&theme={theme}",
      "canUpdateConfiguration": true,
      "scopes": [
        "team"
      ]
    }
  ],
  "staticTabs": [],
  "bots": [],
  "connectors": [
    {
      "connectorId": "76a7925f-e99f-4d9e-970b-b1bee2390f2c",
      "configurationUrl": "https://48fb-80-233-63-141.ngrok.io/tabapplConnector/config.html?name={loginHint}&tenant={tid}&group={groupId}&theme={theme}",
      "scopes": [
        "team"
      ]
    }
  ],
  "composeExtensions": [],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "https://48fb-80-233-63-141.ngrok.io"
  ],
  "showLoadingIndicator": false
}

连接器注册清单(从 outlook.office.com reg 导出)

连接器刚刚注册,未发布

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.3/MicrosoftTeams.schema.json",
  "manifestVersion": "1.3",
  "id": "76a7925f-e99f-4d9e-970b-b1bee2390f2c",
  "version": "1.0.0",
  "packageName": "com.tabappCon2",
  "developer": {
    "name": "Developer",
    "websiteUrl": "https://48fb-80-233-63-141.ngrok.io",
    "privacyUrl": "https://48fb-80-233-63-141.ngrok.io",
    "termsOfUseUrl": "https://48fb-80-233-63-141.ngrok.io"
  },
  "description": {
    "full": "tabappCon2",
    "short": "tabappCon2"
  },
  "icons": {
    "outline": "https://outlook.office.com/connectors/Content/Images/IncomingWebhook.jpg",
    "color": "https://outlook.office.com/connectors/Content/Images/IncomingWebhook.jpg"
  },
  "connectors": [
    {
      "connectorId": "76a7925f-e99f-4d9e-970b-b1bee2390f2c",
      "scopes": [
        "team"
      ],
      "configurationUrl": "https://48fb-80-233-63-141.ngrok.io/tabapplConnector/config.html"
    }
  ],
  "name": {
    "full": "tabappCon2",
    "short": "tabappCon2"
  },
  "accentColor": "#FFFFFF",
  "validDomains": [
    "https://48fb-80-233-63-141.ngrok.io"
  ],
  "needsIdentity": "true"
}
4

0 回答 0