Feb 03 2020 05:34 PM
This question is very similar to a question which has been asked previously on StackOverflow. However, the error I'm getting is different.
AadHttpClient fails when loading SP page with SPFx webpart in MSTeams Desktop Client
I also have a Sharepoint Online site in which I have an SPfx web part that makes use of AadHttpClient. This web part works if I navigate to the Sharepoint site from a browser or open MS Teams web client.
My setup is as follows:
When I debugged the MS Teams desktop client, I have this call in in the Network requests tab:
{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}
I wonder why this only happens in MS Teams desktop client and not on either the web client on Sharepoint Online.
Cross posted from: https://stackoverflow.com/questions/59860729/spfx-webpart-in-msteams-desktop-client-throws-an-unauth...
Feb 04 2020 12:35 AM
@sahansera , Please reach out to microsoftteamsdev@microsoft.com over Email and share the recording so we can look into the issue.
Feb 04 2020 04:02 PM
@Trinetra-MSFT Thanks for your response. As discussed, I have emailed you the screen recording. Let me know if you need more info on the issue
Feb 21 2020 05:28 PM
@sahansera is this got resolved ? if yes please post the steps. thanks
Feb 03 2021 12:31 AM