[英]SharePoint page not loading in personal tab of static app (MS Teams desktop client)
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.在我的自定义个人应用程序中将 SharePoint 页面添加为静态选项卡时,添加的 SharePoint 页面未在 MS Teams桌面客户端中加载,但在Web客户端中按预期工作。
Also , when switching to Developer Preview the tab starts to work.此外,当切换到 Developer Preview 时,该选项卡开始工作。 Even when switching out of Developer Preview the web page still loads as expected.
即使退出Developer Preview,网页仍会按预期加载。
Open the MS Teams app --> The SharePoint page is not loaded (nothing is shown, just a blank screen)打开 MS Teams 应用程序 --> SharePoint 页面未加载(未显示任何内容,只是一个空白屏幕)
Switch to developer preview (& sign in if needed)切换到开发者预览版(如果需要,请登录)
Open the MS Teams app --> The SharePoint page is loaded correctly打开 MS Teams 应用程序 --> SharePoint 页面已正确加载
Switch out of developer preview (& sign in if needed)退出开发者预览版(如果需要,请登录)
PS: it seems initially there is a redirect happening to /_layouts/15/Authenticate.aspx, which redirects to the MS login page. PS:似乎最初有一个重定向发生在 /_layouts/15/Authenticate.aspx,它重定向到 MS 登录页面。 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?
那么,看起来最初 MS Teams 没有正确通过身份验证?
https://github.com/SharePoint/sp-dev-docs/issues/4512 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?您能否尝试在您的 App Manifest 中添加以下内容作为解决方法,如果您遇到任何问题,请告诉我们?
"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"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.