-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passport-slack-oauth2 is NOT using the new oauth flow by slack #9
Comments
Slack's new OAuth2 v2 authentication implementation breaks OAuth2 with the passport-slack-oauth2 library. Passport's goal is to authenticate a User. Slack has chosen to to implement an authentication strategy to allow authenticating multiple contexts. Primarily The OAuth2 standard does not support a multi-token response within the Example Slack OAuth2 v2 token response (bot token with nested user token)
In order to align with Passport's goal to authenticate a User, this token response needs to be reworked to life the user token & nest the bot token. Example reformatted token response
|
@nmaves & @HazemSayad could you both take a look at #13 AND jaredhanson/passport-oauth2#174 ? |
I created a new app in slack and noticed that the scopes I am adding from slack's oauth scopes https://api.slack.com/scopes are not working and resulting in an error
But trying scopes from the legacy tag https://api.slack.com/scopes?filter=bot would work
using the
commands
scope would fail while using thebot
scope would work.commands
scope is new, whilebot
scope is now legacyhttps://api.slack.com/authentication/oauth-v2
Will the strategy be updated to the new oauth2.0 flow by slack anytime soon?
The text was updated successfully, but these errors were encountered: