-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
oauth_authorization_url_mismatch error #108
Comments
I don't know anything about these changes, but would appreciate a PR that fixes this. |
This problem has also occurred in other libraries, and is due to a change in Slack specifications.
I changed to use |
Oh, snap! |
https://github.com/slack-ruby/slack-ruby-bot-server#html-templates <a href="https://slack.com/oauth/authorize?scope=bot&client_id=<%= ENV['SLACK_CLIENT_ID'] %>"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x"></a> I've tried to use |
Yes, we need to allow users to customize this and remove the scope per whatever the newer correct way of doing this is. |
I barely guess we need much works in all the libraries under "slack-ruby" to make it all work with the new slack api. |
Looks like you are getting |
Basically I got the direction where we should head to. |
Yes, correct. You can make backwards incompatible changes since it's on its way out, no need to support legacy. |
Thank you for encouragement and more. |
|
This issue can be closed now. |
When sending POST
/api/teams
will cause anoauth_authorization_url_mismatch
error. May be because default auth of Slack app has been changed to OAuth v2.Error occurs on this line.
slack-ruby-bot-server/lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb
Line 43 in 0b8bbbb
Perhaps, instead of
oauth_access
, it can be avoided by usingoauth_v2_access
.https://github.com/slack-ruby/slack-ruby-client/blob/master/lib/slack/web/api/endpoints/oauth_v2.rb#L22
The text was updated successfully, but these errors were encountered: