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

查看:115
本文介绍了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.

,当切换到开发人员预览"时,该标签开始起作用.即使将退出开发人员预览版,网页 still 也会按预期加载.

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天全站免登陆