msft-teams / tools

Templates and tools from Microsoft Teams Engineering
120 stars 54 forks source link

ExtensionTabService: getAuthTokenForApp: Failed with error - App resource defined in manifest and iframe origin do not match #83

Open Lesiio opened 2 years ago

Lesiio commented 2 years ago

I developed Microsoft Teams Tab app, which I'm adding to the chat and teams channels. From the Graph API tab app needs to chceck who is a member of a chat/teams channel, and also read who is a manger among members. For development (Visual Studio, Blazor) I registered the app in my temporary tenant, I was able to test application in Microsoft Teams as an admin and a a user. It was working properly (everything was on localhost).

Right now I want to test it on the company domain. I tunneled app using ngrok, administrator registered an app in Azure. I changed manifest to be compatible with information I got from the administrator. My "webApplicationInfo" (id and resource) are the same as Application (client) ID and Application ID URI from Azure.

When I'm opening a tab in Teams (it doesn't matter if it's web or desktop app) I'm getting error: ExtensionTabService: getAuthTokenForApp: Failed with error - App resource defined in manifest and iframe origin do not match.

What can I change to make it work?

match-mp4 commented 6 months ago

Having the same Problem. Any help is appreciated.