Search code examples
ruby-on-railsomniauthslack-apislack

Omniauth-slack scope error


I would like to receive both a webhook url and the list of channels but have been unable to with the following scopes:

  • 'channels:read,incoming-webhook' (This only has the single channel that was selected)
  • 'channels:list,incoming-webhook' (This says: OAuth Error: invalid_scope: Invalid scope channels:list)

How can I get this information in one oauth?

Here is another site I used to try to troubleshoot this issue.


Solution

  • channels.list is a method and so you you have to make another 'get' to get this data. Here is an example: https://api.slack.com/methods/channels.list/test