Jun 27 2022 09:05 AM - edited Jun 27 2022 09:10 AM
Hello,
couple days ago, I started facing an issue when I send OAuthPrompt card it's not shown up in the Teams conversations. It works fine when I use it in "Test in Web Chat" but not in real Teams app. Instead, I see error in browser console:
> getAuthToken: webApplicationInfo resource format does not contain botid {botIdValue}
Can you point me to the possible reason of the error?
Jun 27 2022 10:45 PM
Jun 28 2022 07:22 AM
Jun 29 2022 05:57 AM
@Andrew Grebennikov -We are not able to repro the scenario,we are check this in teams it will show OAuth card in teams.
We are referring the below code-BotBuilder-Samples/Cards.cs at main · microsoft/BotBuilder-Samples (github.com)
Could you please share the repro steps/manifest, so that we can try it from our end?
Jun 29 2022 08:52 AM
@Sayali-MSFT I attached manifest I'm using for testing. Before bot was using regular http responses so it was easy to find out possible reason of the issue. Where can I check what response was sent by the bot now? How can I debug that?
Jul 01 2022 06:51 AM
Jul 03 2022 11:28 PM
@Andrew Grebennikov -If you are building a standalone bot, enter the Application ID URI as api://botid-{YourBotId}
. Here YourBotId is your Azure AD application ID.
Please check Azure Portal ->App Registration->Expose an API section bot id is same or not.
Please have look into this doc-Single sign-on support for bots - Teams | Microsoft Docs
Thanks,
Sayali
-----------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.
Jul 05 2022 10:06 AM - edited Jul 05 2022 10:07 AM
@Sayali-MSFT, sorry, maybe I explained it incorrectly, I'm talking about Teams bot chat. When user type in "Signin" command, bot supposed to send OAuth prompt card. Through the debugging I see that it handled correctly, and card seems to be sent, but nothing appears in chat window, the only thing I see is the error I shared above.
Regarding your question - Application id is 7205e580-78af-4a0d-b7a8-af8399a31cf1 and it's the same in Azure Bot Configuration section, App registration for the bot and in the manifest I shared.
Jul 19 2022 03:46 AM - edited Jul 19 2022 03:47 AM
@Andrew Grebennikov - Have you updated the OAuth Connection?
Ref Doc-https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/auth-aad-sso-bot...
Jul 30 2022 09:04 AM
@Sayali-MSFT sorry for the delay. The link you shared is related to the way how SSO for the bot should be setup. My problem is that OAuth prompt card is not rendered at all in real chat (Teams web app or standalone app) but works fine using "Test in Web Chat" emulation. The question is how can I debug that? The only thing I see is an error "webApplicationInfo resource format does not contain botid" and it doesn't make much sense for me.
Aug 24 2022 10:16 PM