Ok, this question may require a bit of context. But the short of it is we are building a MS Teams Bot and a website used to manage the bot. We have two main flows we'd like to support:
New user
Sign in with the account they use to manage their MS Teams instance.
We provide them a link to install our Bot into a Teams instance.
After installing the bot, they're redirected back to our website and we can connect their user account to the instance of Teams.
Existing user
1. Sign in with the account they use to manage their MS Teams instance.
2. We list the set of Teams instances associated with that account that we know about.
3. They choose the Teams instance they want to manage.
For step 2 in the Existing user flow, we need to be able to connect an Azure Bot Service message to a user. For example, suppose another person installs our bot and mentions User A. Later, User A logs into our website. We'd like to be able to connect their account to that earlier mention. That way we could list that Teams instance as one of the instances we know about.
This is the same flow we have for Discord, but we're not sure about the authentication part and connecting that authentication to Teams.