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...
Andrew Grebennikov
Jun 29, 2022Copper Contributor
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?
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 GrebennikovJul 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