microsoft / botframework-sdk

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

Azure Bot Slack connector not working #6656

Closed git2sunder closed 20 hours ago

git2sunder commented 1 month ago

Version Azure Bot Services SDK v4 Describe the bug I have created a Slack bot using Azure Bot Services, which functions correctly when installed on my personal Slack instance. However, when partners attempt to install it using the provided link, they encounter an error during the OAuth redirect. Furthermore, despite successful installation indications, the Azure bot fails to receive messages sent from these Slack instances.

To Reproduce Steps to reproduce the behavior:

Provide partners with the Slack bot installation link. Partners click on the link and proceed with the OAuth validation. After completing OAuth, partners are redirected to a URL which displays an error. Partners try sending messages to the bot, but no messages are received on the Azure Bot. Expected behavior The bot should install without errors on partner Slack instances, and the Azure bot should be able to receive messages from any instance where it is installed.

Screenshots image

Additional context The bot functions as expected on my own Slack instance, indicating that the basic setup is correct. It seems there might be an issue with how the OAuth is handled or possibly with permissions or scopes granted during the installation by other users.

git2sunder commented 1 month ago

image

git2sunder commented 1 month ago

Here is the bot install URL ( I copied directly from the azure bot connector url)

https://slack.com/oauth/v2/authorize?scope=channels%3ahistory%2cchannels%3aread%2cchat%3awrite%2cchat%3awrite.customize%2cgroups%3ahistory%2cgroups%3aread%2cim%3ahistory%2cim%3aread%2cincoming-webhook%2cmpim%3ahistory%2cmpim%3aread%2cmpim%3awrite&client_id=6973649201331.6986439038209&redirect_uri=https%3a%2f%2fslack.botframework.com%2fHome%2fauth%2fv2&state=marketbetter

stevkan commented 1 week ago

@git2sunder - Thank you for your patience. Are you still experiencing an issue with this?

If so, can you tell me which SDK you are using (C#, JS, or Python) and which version?

stevkan commented 20 hours ago

Closing due to inactivity. Please feel free to reopen if the issue persists or you have new details to share.