Forum Discussion
Andrew Grebennikov
Jun 27, 2022Copper Contributor
OAuthPrompt not shown up
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 Team...
Sayali-MSFT
Microsoft
Jul 04, 2022Andrew 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.
Andrew Grebennikov
Jul 05, 2022Copper Contributor
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.
- Andrew GrebennikovJul 16, 2022Copper Contributor
Sayali-MSFT do you have any updates on that?
- Sayali-MSFTJul 19, 2022
Microsoft
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-bots#update-the-azure-portal-with-the-oauth-connection- Andrew GrebennikovJul 30, 2022Copper Contributor
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.