kmrshntr / omniauth-slack

omniauth-slack
MIT License
95 stars 156 forks source link

Update to reflect changes to Slack scopes #27

Closed casconed closed 8 years ago

casconed commented 8 years ago

Slack has moved to object scopes, so the checks in incoming_webhook_allowed and bot_allowed are no longer valid.

The API docs note:

If your Slack app includes a bot user, upon approval the JSON response will contain an additional node containing an access token to be specifically used for your bot user, within the context of the approving team.

The same appears to be true for the incoming_webhook data

see: https://api.slack.com/docs/oauth-scopes