microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth Login issues with MS Teams (old and new)

tuhland opened this issue · comments

Describe the bug

We have a bot which uses the OAuth-Login prompt to authenticate with our service. This has been working for years, and still works with Slack etc.

Currently though, when using the "old" Teams experience, the login can only be done using direct chat with the bot. When starting the login process from a channel, the bot is stuck waiting for a response after the user entered his credentials and the credentials dialog closed.

When using the "new" Teams experience it gets even worse.
The bot gets a User Cancelled response, before the user even had a chance to enter his credentials.

To Reproduce

Have a bot with OAuth-Login using a 3rd party (not AAD) to authenticate.
Try to login from a channel or the "new" Teams experience.

Expected behavior

Login should work for all versions of Teams, no matter if you talk directly to the bot or in a channel.

We got this confirmed to be a bug in the Office-Dev-Repo. No update yet on when to expect a fix.