Skip to content
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

How to use chat.command in a slack app using legacy token #62

Closed
Avinesh opened this issue Apr 22, 2020 · 1 comment
Closed

How to use chat.command in a slack app using legacy token #62

Avinesh opened this issue Apr 22, 2020 · 1 comment

Comments

@Avinesh
Copy link

Avinesh commented Apr 22, 2020

The legacy token which is created for a workspace is to be used only by user or can it be used by a slack app?

@ErikKalkoken
Copy link
Owner

Since the previous answer on the same topic apparently was not clear enough, here is a more detailed answer:

Legacy tokens are special tokens that always have all permissions and scopes incl. admin. In addition they give the unique post scope, which can not be attained with any other token type. Consequently it is not possible to create Slack apps with the post scope.

Since most undocumented API methods require the post scope they can only be used with legacy tokens.

Therefore the only way to enable Slack apps to use legacy tokens is to add them manually, e.g. by adding them to a local configuration file / database of your Slack app or by setting an environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants