Closed stevekay72 closed 5 years ago
I have cloned the OAuthPrompt class and created my own including "slack" to stop it using the OAuthCard and it now works
@stevekay72 Thanks for reporting this. It turns out this is a service side issue that has been fixed and will be deployed the second week of December. In the time being, using the GetSignInLink or creating your own OAuthPrompt that adds 'slack' to the list of channels that use SignIn Cards with GetSignInLink (like Cortana and Teams) is the best work-around.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
GA version of the bot framework V4 4.0.8
Describe the bug
Trying to authenticate a user inside the bot using the OAuthCard flow does not work for Slack. As per the example for AADv2 I implemented the 'dialog' way of authenticating the user and included the OAuth prompt. On web this works fine but in Slack it opens the browser to get the magic code and the code returned is not valid.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The magic code returned should work and the user be logged in
Possible fix until remedied
in Microsoft.Bot.Builder.Dialogs/Prompts/OAuthPrompt.cs include "slack" in the method ChannelSupportsOAuthCard as an exception
[bug]