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

Unable to send slack message as bot using slack oauth2 #12322

Open
jcrawford-fts opened this issue Dec 20, 2024 · 1 comment
Open

Unable to send slack message as bot using slack oauth2 #12322

jcrawford-fts opened this issue Dec 20, 2024 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@jcrawford-fts
Copy link

jcrawford-fts commented Dec 20, 2024

Bug Description

If I use just the “slack oath2 api” credential, the only choice I have is a client id and client secret with a callback url (see attached). It will not let you use the bot user oath token beginning in xoxb. When I try to send a message, it sends as myself. Since we can't specify the actual bot oath2 user token, it defaults sending the message with the user token. If I use “slack api” credential then I have the option of just using the bot user oath token which starts with xoxb and it works fine.

I’m using the self hosted community version 1.71.3 in k8 aka n8nio/n8n:1.71.3

To Reproduce

  1. Go to create credential.
  2. Select "slack oauth2 api"
  3. Click "continue"
  4. See screenshot below where your only options are "client id" and "client secret"
    n8n_screenshot

Expected behavior

Allow a user to be able to plug in the bot user oauth user token that starts with xoxb which then will send a slack message as the bot instead of the user.

Operating System

Alpine Linux v3.20 (n8nio/n8n:1.71.3)

n8n Version

1.71.3

Node.js Version

v20.18.0

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Dec 20, 2024

Hey @jcrawford-fts,

We have created an internal ticket to look into this which we will be tracking as "N8N-7996"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants