microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
864 stars 480 forks source link

Wrong results when using OAuthPrompt from group or channel #6765

Open atmoraes1 opened 3 months ago

atmoraes1 commented 3 months ago

When using OAuth2 via OAuthPrompt the user authentication flow does not work as expected. It seems some states are being shared between the turns that prevent the authentication to complete.

As race conditions might happen the scenarios may vary. The bot was built based on the sample.

Is that a bug or the OAuthPrompt is expected to only work with private chats? If that's the case how should one proceed to authenticate a conversation started from within a group or channel (Microsoft Teams).