-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add support for new Slack granular permission oauth endpoint #1892
Comments
Installing new Slack apps is failing now: According to https://api.slack.com/methods/oauth.v2.access,
You'll probably need to use slack.oauth.v2.access instead of slack.oauth.access in validateOauthCode in slack_adapter.ts. When do you think you can fix this issue? |
For now I would directly use the methods available from the Slack SDK rather than using the built-in routes. |
do you have an estimate on when you can release a fix? |
Not currently. Since legacy apps will continue to need the current functions to remain the way they are. You can generate your own redirect link, or use the Slack API to do it. |
From Slack,
All legacy apps will have to migrate soon. Once they migrate to new model, they need to "re-install", which will fail. Current botbuilder-adapter-slack is blocking the migration. You may want to reconsider your decision. |
Hi @yingzhanguipath, I am not sure what is keeping you from generating your own redirect link and oauth validation method using the new URL and APIs. All legacy apps that are publicly listed in the app store have to change, but the vast majority of Botkit apps are not public and will not be required to change in this timeline. That is not to say that new methods won't be eventually introduced. You should consider opening a pull request! |
I am new to nodejs so I am sure there is a better way to do this. But here it goes. I am working on the yeoman generated slack app. I used the following in the bot.js. Hope it helps until there is a fix native. Oh and if you are using the yeoman generator you will need a newer version of botbuilder-adapter-slack. I used "botbuilder-adapter-slack": "latest" in package.json.
The response is slightly different as well.
|
As an FYI, they will also be forcing all apps to convert to the new method in December of 2020 |
Proposed a quick solution for oauth v2 #1928 |
Included in the next release -> #1929 |
botbuilder-adapter-slack should be be patched to add support for using the new oauth/v2/authorize URL instead of generating a link to oauth/authorize
The text was updated successfully, but these errors were encountered: