I develop Bot for Microsoft Teams, but, after SignIn Card my account login can't reset.
I need to reset channel teams data, login cookies and conversation states.
I also noticed that, sometimes (not predictable), when using Teams in an incognito browser session, the Sign In button opens the login dialog but it is immediately closed without the possibility to choose the proper account. It results in automatic user sign in process but we aren't able to discover how it happens. Is there a way to delete those "saved" credentials in order to always prompt the login dialog correctly?
There should be a logout component dialog in the current teams auth samples that you can use to 'logout' the current user.
Hi @andreatosato and @fathorMB
Did this help your issue or do you need further assistance?
Hi @jwiley84, is this logout component available also in the Bot Framework Composer application? We're using that one to develop our dialogs.
We (@fathorMB and I) also developed a BOT with the QnA multi-turn. We used the same example as a github repository. On Teams, once error is made, the channel is corrupt forever. Nothing works anymore. On WebChat, however, no error occurs and the bot responds correctly.
No login happens, it is a simple use of the KB by the QnA maker service.
Sample
@jwiley84 Can you help us? Why Teams not work properly?
@andreatosato Let me see if I can repro your issue. Thank you for the clarification.
Many bot on Teams, after first crash error, not work.
In webchat we can restart bot, but in Teams no.
@andreatosato
Concerning resetting teams: Teams hold their own version of history, using a conversationID that's generated on the Teams side when your bot is first added to Teams. It connects the user to another user, in this case the bot. Uninstalling the bot in teams and resinstalling will not change this, as it's connected to your bot ID. The only way to 'reset' teams is to create a new bot, with a new Microsoft App Id and add it to Teams.
Are the bots you're working with fully deployed on Azure or are you using local bots and tunneling in through ngrok?
I have fully deployed bot.
I can't redeploy bot every errore, so I need hard reset for team bot.
I think that this feature is very important for developer, rd and test apps.
Hi @andreatosato,
I'd like to try to clarify something. You don't have to redeploy your bot every time there's an error within Teams. There's only one (to my know knowledge) issue where you have to fully redeploy. That situation is if the bot is not running the very first time you install it within Teams the bot ID becomes corrupted. This is a known issue within Teams and I don't believe it's possible to fix. If you want to inquire further you can contact Teams support at: [email protected]
My scenario:
My collegue test multi turn qna in bot.
I attach GitHub repo info in previous comment.
My collegue found errors after each bot response.
I test same question on webchat and work very well.
I test same question on my test bot conversation in Teams (same bot on same tenant) and work very well.
It Is not first scenario than Teams conversation break for single user. I think that Teams cache is like magic.
I have another bot, only Echo bot with 2 waterfall steps.
This bot corrupt on my user, for another collegue work very well.
After session with Microsoft Teams, fiddler trace and One month of investigation, no solution arrived.
I redeploy bot! But in production, I can't do this trick.
Closing due to inactivty. Please ask "how to" questions via Stack Overflow with the "#botframework" tag.
@andreatosato were you ever able to use the logout using the SDK?
What type of corruption happens to your user state?
Have you investigated the data written to the bot's dialog state in the database?
Closing due to inactivity. Please ask "how to" questions via Stack Overflow with the "#botframework" tag.
What type of corruption happens to your user state?
@benbrown no data corruption, but bot respond with error, always!
Have you investigated the data written to the bot's dialog state in the database?
How can investigate data? Is there a tool?
@andreatosato what error do you see?
You can look at / reset the data in your state storage database.
Can you suggest some operation on Cosmos collection?
I have tried to delete collection but bot doesn't work anymore