SharePoint 页面未在静态应用程序的个人选项卡中加载(MS Teams 桌面客户端) [英] SharePoint page not loading in personal tab of static app (MS Teams desktop client)

查看:13
本文介绍了SharePoint 页面未在静态应用程序的个人选项卡中加载(MS Teams 桌面客户端)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的自定义个人应用程序中添加 SharePoint 页面作为静态选项卡时,添加的 SharePoint 页面未加载到 MS Teams 桌面 客户端,但按预期工作在网络客户端中.

When adding a SharePoint page as a static tab in my custom personal app, the added SharePoint page is not loaded in the MS Teams desktop client, but works as expected in the web client.

此外,当切换到 Developer Preview 时,该选项卡开始工作.即使切换退出 Developer Preview,网页仍然按预期加载.

Also, when switching to Developer Preview the tab starts to work. Even when switching out of Developer Preview the web page still loads as expected.

  • 在 SharePoint Online 中创建页面
  • 创建一个新的 MS Teams 应用(例如在 App Studio 的清单编辑器中)
  • 添加一个新的个人标签,链接到 SharePoint 页面
  • 安装 MS Teams 应用(例如,使用 App Studio 的测试和分发)
  • 打开 MS Teams 应用--> 未加载 SharePoint 页面(未显示任何内容,只是一个空白屏幕)

  • Create a page in SharePoint online
  • Create a new MS Teams app (e.g. in App Studio's Manifest editor)
  • Add a new Personal tab, linking to the SharePoint page
  • Install the MS Teams app (e.g. with App Studio's Test and Distribute)
  • Open the MS Teams app --> The SharePoint page is not loaded (nothing is shown, just a blank screen)

切换到开发者预览版(并在需要时登录)

Switch to developer preview (& sign in if needed)

打开 MS Teams 应用--> SharePoint 页面已正确加载

Open the MS Teams app --> The SharePoint page is loaded correctly

切换退出开发者预览版(并在需要时登录)

Switch out of developer preview (& sign in if needed)

PS:最初似乎有一个重定向到/_layouts/15/Authenticate.aspx,它重定向到 MS 登录页面.但是,当切换到开发者预览版或从开发者预览版切换过来时,不会发生这种重定向.那么,看起来最初 MS Teams 没有通过正确的身份验证?

PS: it seems initially there is a redirect happening to /_layouts/15/Authenticate.aspx, which redirects to the MS login page. However, this redirect is not happening when the switch to or from developer preview has occured. So, it looks like initially MS Teams does not pass authenticated correctly?

https://github.com/SharePoint/sp-dev-docs/issues/4512

推荐答案

您能否尝试在您的应用清单中添加以下内容作为解决方法,并让我们知道您是否遇到任何问题?

Could you please try adding following in your App Manifest as workaround and let us know if you are facing any issue?

"staticTabs": [
    {
      "entityId": "TestTabId",
      "name": "Test Tab",
      "contentUrl": "https://microsoft.sharepoint.com/teams/MyTestSite/_layouts/15/teamslogon.aspx?spfx=true&dest=/teams/MyTestSite/SitePages/Test.aspx",
      "scopes": ["personal"],
      "websiteUrl": "https://fullwebsite.website.com/about"
    }
  ],
  "validDomains": [
    "*.login.microsoftonline.com",
    "microsoft.sharepoint.com",
    "microsoft.sharepoint-df.com",
    "spoppe-a.akamaihd.net",
    "spoprod-a.akamaihd.net",
    "resourceseng.blob.core.windows.net",
    "msft.spoppe.com"
  ],
  "webApplicationInfo": {
    "resource": "https://microsoft.sharepoint.com",
    "id": "00000003-0000-0ff1-ce00-000000000000"
  }

这篇关于SharePoint 页面未在静态应用程序的个人选项卡中加载(MS Teams 桌面客户端)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆