AadHttpClient fails when loading SP page with SPFx webpart in MSTeams Desktop Client

佐手、 提交于 2020-01-23 03:40:06

问题


I added a Personal Tab in MS Teams which references a SharePoint Page with on it an SPFx webpart using AadHttpClient.

In the MS Teams Web Client the page loads as expected, and the AadHttpClient calls work.

However, in the MS Teams Desktop Client (on windows) the AadHttpClient does not work.

Looking in Fiddler, I can see the following happening (only on the dekstop client):

  • A call is made to /sites/MyDevSite/_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource='9bebc8ed-8a93-4efc-84a3-ae979d301124'&clientId='add82f27-80e9-45e3-9cf5-345e72d24ff7'

  • The call returns an HTTP 500 with message:

{"odata.error":{"code":"-1, System.AggregateException","message":{"lang":"en-US","value":"One or more errors occurred."}}}

I have no idea what I would have to do to fix this, so any help would be greatly appreciated.


回答1:


Fix has been issued by Microsoft.



来源:https://stackoverflow.com/questions/56073225/aadhttpclient-fails-when-loading-sp-page-with-spfx-webpart-in-msteams-desktop-cl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!