问题
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