Teams Bot: OAuthPrompt not shown up

Andrei Grebennikov 1 Reputation point
2022-07-30T16:14:05.05+00:00

While updating Teams Bot I started facing an issue when I send OAuthPrompt card. By some reason it's not shown up in the Teams conversations in web app or native app. But it works fine when I use it in "Test in Web Chat". When it doesn't work I see an error in browser console:

getAuthToken: webApplicationInfo resource format does not contain botid {botIdValue}

How can I debug it? What might be wrong? I'm using custom auth provider so in Configuration it's Generic OAuth 2.

My question on Techcommunity: https://techcommunity.microsoft.com/t5/teams-developer/oauthprompt-not-shown-up/m-p/3576361/highlight/false#M6033
Related questoin on Stackoverflow: https://stackoverflow.com/questions/68406871/oauthprompt-is-not-working-inside-of-teams-works-fine-in-emulator-and-in-test

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,355 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,956 questions
{count} votes