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

Slack request invite form returns "missing scope" error #33

Closed
ghost opened this issue Sep 20, 2015 · 1 comment
Closed

Slack request invite form returns "missing scope" error #33

ghost opened this issue Sep 20, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 20, 2015

Was working. Now getting "missing scope" error.

Slack don't yet officially support programmatic team invites; instead, our code uses the same web service that is called when a team administrator requests an invite for someone on the Slack admin page.

The API needs a token. Previously, a token obtained from the Slack API page worked. Now, it doesn't.

Workaround is to grab a working token by:

  • logging on as team administrator
  • go to the Slack admin page and request an invite for a dummy email address
  • use browser to "inspect element" and view the contents of the form data in the HTTP request
  • save a copy of the token that appears there
  • use this token when setting the environment variable SLACK_TOKEN

I've tested this on my local copy of hackwimbledon and my test Slack account.

More info here: outsideris/slack-invite-automation#8 (that repo is the basis of the code we are using)

@ghost
Copy link
Author

ghost commented Sep 20, 2015

Thanks for updating the token, DJ.

@ghost ghost closed this as completed Sep 20, 2015
This issue was closed.
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

0 participants