Skip to content

fix(slack): OAuth redirect handling#307

Open
bensabic wants to merge 2 commits intomainfrom
fix/slack-oauth-redirect
Open

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

Conversation

@bensabic
Copy link
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
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

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

1 participant