Closed AhmedSedek closed 3 years ago
The oauth_access
method in the client doesn't do anything special. I don't think what you're calling in postman is identical, or it would work. But This seems similar to https://github.com/slackapi/python-slackclient/issues/586, which says granular scopes, such as identity.basic
, aren't allowed for RTM apps. Is that it?
I suspect your client credentials are from a default slack app @AhmedSedek . oauth_access
doesn't work with default slack apps. It works with legacy slack apps.
You should try to use oauth_v2_access
.
Check this PR.
Or you can still create a legacy slack app at https://api.slack.com/apps?new_classic_app=1
Closing this, please reopen if the problem persists @AhmedSedek
I'm trying to create an
oauth_access
request as follows:The
client_id
andclient_secret
are copied fromhttps://api.slack.com/apps/<app_id>/general#App Credentials
Thecode
is returned from anoauth/authorize
requesthttps://slack.com/oauth/authorize?scope=identity.basic&client_id=<client_id>
Would this be a bug because on the
oauth_access
documentation, there are no suchnot_allowed_token_type
error.?The error trace:
UPDATE: I tried creating a
post
request manually usingpostman
tohttps://slack.com/api/oauth.access?code=<code>&client_id=<client_id>&client_secret=<client_secret>
, and I got a correct response as expected.