Hi @Tharushi De Silva
Good day, and thank you for providing the detailed information.
First, I’d like to clarify that this is a user‑to‑user support forum. Moderators participating here do not have access to backend systems, nor can we directly intervene in Microsoft product functionality. Our role is limited to providing technical guidance and sharing best‑practice recommendations based on reported issues, requests, and scenarios.
You could refer to the AI response first. As far as I understand, the resourcematchfailed issue indicates that the audience (aud) claim in the token returned by Entra ID does not exactly match (character‑by‑character) the resource value expected by the Teams client.
In the Teams SSO flow:
The Teams client silently requests an access token from Entra ID on behalf of the logged-in user.
It then passes this token to the bot through the token exchange mechanism.
If the aud in the token does not perfectly match the webApplicationInfo.resource defined in your Teams app manifest (and the Application ID URI in the Entra app), Teams will reject it with “Resource match failed”.
This is why web chat usually works (they use standard OAuth flow), while the real Teams client fails.
To resolve this, I would recommend verifying that the Application ID URI is identical across the Entra app, the Teams manifest (webApplicationInfo.resource), and the Azure Bot OAuth connection Token Exchange URL. In addition, please confirm that the OAuth connection is linked to the correct Entra application and that the connection name used in the bot code exactly matches the one configured in Azure.
If everything appears correct, you could consider recreating the OAuth connection, as stale or inconsistent configuration can cause Teams to request a token for the wrong resource. Also, capturing and decoding the token issued by Teams can help confirm whether the audience claim matches the expected Application ID URI. Once the audience is aligned, the SSO flow should complete successfully.
If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
Note: Please follow the steps in [our documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.