SlackAPI icon indicating copy to clipboard operation
SlackAPI copied to clipboard

New apps with granular scopes?

Open mbellas-tkxs opened this issue 5 years ago • 5 comments

As I test I converted one of my apps over to a "new" app, and I'm now unable to connect. According to the documentation:

New bot user API access tokens may not access RTM. For most apps, the Events API lets your app listen to Slack goings-on in a more structured, safe way. If you require access to RTM (say, because you're building your app behind a corporate firewall), obtain a user access token from the OAuth & Permissions page in your app management UI, and use that user token to call rtm.start.

I modified the Connect method to call rtm.start but I'm still getting not_allowed_token_type. I'm not sure what the docs are talking about when it says get a user token from OAuth & Permissions page - I only have the bot token available there. Anyone know?

mbellas-tkxs avatar Dec 09 '19 02:12 mbellas-tkxs

Did you ever resolve this?

danielriddell21 avatar Mar 02 '20 13:03 danielriddell21

I haven't looked into this yet

Inumedia avatar Mar 02 '20 22:03 Inumedia

I'm looking into granular scopes right now because a new scope is introduced for bot users to write to any public channel without invitation.

The docs are confusing me, it took a lot of random clicking to finally understand that i need to 'upgrade' my scopes. Thank god i double checked this repo for related material so i know i shouldn't upgrade just yet.

Bert-Proesmans avatar Mar 05 '20 07:03 Bert-Proesmans

I've switched to the Events API instead.

mbellas-tkxs avatar Mar 05 '20 13:03 mbellas-tkxs

So, can i use library or rollback app to old type?.. Or what need to do now?

MonkAlex avatar Mar 10 '21 11:03 MonkAlex