Skip to content

fix(slack): OAuth redirect handling#307

Merged
bensabic merged 2 commits intomainfrom
fix/slack-oauth-redirect
Apr 8, 2026
Merged

fix(slack): OAuth redirect handling#307
bensabic merged 2 commits intomainfrom
fix/slack-oauth-redirect

Conversation

@bensabic
Copy link
Copy Markdown
Contributor

Fixes Slack OAuth callback handling when the install flow depends on a specific redirect_uri.

The Slack adapter now accepts redirectUri as an explicit option on handleOAuthCallback(request, { redirectUri }), with backward-compatible fallback to redirect_uri on the callback URL when present. This fixes multi-redirect OAuth setups where Slack does not echo the redirect URI back as a query param.

Also includes:

  • tests covering explicit redirectUri, precedence over query params, query-param fallback, and missing code
  • README and Slack guide updates documenting the callback usage
  • a patch changeset for @chat-adapter/slack

Validation:

  • pnpm vitest run packages/adapter-slack/src/index.test.ts
  • pnpm typecheck
  • pnpm test

Closes #297

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Mar 27, 2026 3:19am
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Mar 27, 2026 3:19am

@bensabic bensabic merged commit 1856198 into main Apr 8, 2026
12 checks passed
@bensabic bensabic deleted the fix/slack-oauth-redirect branch April 8, 2026 14:15
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

Successfully merging this pull request may close these issues.

Slack adapter getting redirect_uri from the query params of request

2 participants