I built my bot using Direct Line and authentication works there. But when I deployed my bot to MS Teams, pressing the sign in button does nothing at all. I used the following code:
AddDialog(new OAuthPrompt(
nameof(OAuthPrompt),
new OAuthPromptSettings
{
ConnectionName = ConnectionName,
Text = " Welcome! Please Sign In.",
Title = "Sign In",
Timeout = 300000, // User has 5 minutes to login (1000 * 60 * 5),
})
);
I tried looking up documentation, but it seems they're using a different framework, or the v3 bot framework. How can I make OAuth work in web and ms teams?
I'm using Bot Framework v4.