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

Can't figure out which token #2418

Open
alper opened this issue Feb 6, 2025 · 1 comment
Open

Can't figure out which token #2418

alper opened this issue Feb 6, 2025 · 1 comment
Labels
question M-T: User needs support to use the project

Comments

@alper
Copy link

alper commented Feb 6, 2025

I don't know which of these tokens is required and which isn't:

CLIENT_ID
CLIENT_SECRET=
SIGNING_SECRET=
VERIFICATION_TOKEN=
APP_LEVEL_TOKEN=
BOT_USER_OAUTH_TOKEN=

Don't you think this is a bit ridiculous?

The documentation doesn't really help either.

@alper alper added the untriaged label Feb 6, 2025
@zimeg zimeg added question M-T: User needs support to use the project and removed untriaged labels Feb 7, 2025
@zimeg
Copy link
Member

zimeg commented Feb 7, 2025

Hey @alper! 👋

The credentials needed for your app depend on the features you're using, and while there are quite a few, each has a specific purpose.

To call a Slack API method, a token of some sort is needed. This might be a bot token, which can be gathered with either:

  • BOT_TOKEN: A token provided to be used when making API calls, found on app settings.
  • CLIENT_ID and CLIENT_SECRET: Credentials needed to complete the OAuth process.

A user token can also be collected from either app settings or the OAuth process if user scopes are requested, but this is separate from a bot token.

When your app is receiving events from Slack, either an HTTP request URL or Socket Mode can be used, and the following credentials are related to this:

  • SIGNING_SECRET: A unique signature to verify incoming HTTP requests are from Slack.
    • VERIFICATION_TOKEN: A token used for a deprecated verification technique.
  • APP_TOKEN: A token with scopes that can generate a Socket Mode connection URL.

Only one of point from each section above is required, and when starting a new app it's often fastest to use the app and bot tokens collected from the app settings page.

I realize this can also be quite a bit needed to start an app, but please let me know if more details are needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

2 participants