Hi @rhb7gcph Welcome to the community!
I guess the problem might be with your BaseURL and how you have set that up, consider recreating new slack Oauth credentials so that slack call back URL matches the redirect URL. If using docker you can set things up like: N8N_HOST=``your.domain.com N8N_EDITOR_BASE_URL=https://your.domain.com/ WEBHOOK_URL=https://your.domain.com/
So after this you can restart your n8n and then copy the new Oauth callback url for slack and paste it in the oauth and permissions > redirect url , this will make it work as this is the error which occurs all the time when settling redirect url.
Hey, could you share the full error message you’re getting and how you configured the OAuth redirect URI in your Slack app settings? Also knowing your n8n version and whether you’re accessing it via localhost or some other URL would help narrow this down.
The key thing happening here is that Slack does not accept localhost as a valid OAuth redirect URI for production apps by default.
Even though you’ve configured http://localhost:5678/rest/oauth2-credential/callback in both n8n and your Slack app’s redirect URLs, Slack’s OAuth verification is strict about localhost — it’s allowed only for certain app distribution types.
The actual fix for local Windows development
You need to expose your n8n instance with a public HTTPS URL and use that as the OAuth callback, then set it consistently in both your Slack app settings and n8n’s environment.
The easiest approach on Windows:
Install ngrok: winget install ngrok or download from ngrok.com
Start ngrok pointing at your n8n port: ngrok http 5678
Copy the https URL it gives you (e.g. https://abc123.ngrok-free.app)
Set these environment variables before starting n8n:
set N8N_HOST=abc123.ngrok-free.app
set N8N_PROTOCOL=https
set WEBHOOK_URL=https://abc123.ngrok-free.app
set N8N_EDITOR_BASE_URL=https://abc123.ngrok-free.app
npx n8n start
In your Slack app settings > OAuth & Permissions > Redirect URLs, remove the localhost URL and add https://abc123.ngrok-free.app/rest/oauth2-credential/callback
Go back to n8n, create a new Slack credential, and the OAuth callback URL should now match
Important: After you set up ngrok, delete and recreate your Slack credential in n8n — the old one was generated when n8n thought its base URL was localhost, so the callback URL embedded in the OAuth flow was already wrong before you even hit Slack’s endpoint.
Note that ngrok’s free tier gives you a new URL each restart, so you’d need to update the Slack app redirect URL each time. For a more permanent local dev setup, the paid ngrok static domain ($8/mo) or alternatives like Cloudflare Tunnel (free) work well.
localhost is not accepted as a valid redirect URI by most apps.
Suggest you to use ngrok tunnel to get a free HTTP domain and point that to your locally hosted n8n, and then regenerate the redirect URI to connect back to Slack.