microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.45k stars 2.44k forks source link

OAuth Login issues with MS Teams (old and new) #6605

Closed tuhland closed 6 months ago

tuhland commented 11 months ago

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.

tuhland commented 11 months ago

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