Skip to content

Slack adapter getting redirect_uri from the query params of request #297

@padapada09

Description

@padapada09

Bug Description

I have an issue where slack is not sending the redirect_uri to the callback as a query param, and I don't have a way of passing that to the adapter (aside from injecting it into the request which I'm doing as a temporal solution) given the fact that I might have multiple redirect uris I need to be able to specify which redirect_uri I'm using other wise the the code exchange fails with: bad_redirect_uri on line packages/adapter-slack/src/index.ts:601

Steps to Reproduce

  1. Create a Chat instance
  2. Setup slack adapter for Oauth configuration
  3. Set up multiple redirects on api.slack.com
  4. Get redirected to Oauth callback handler of Slack Adapter
  5. Fails with bad_redirect_uri

Expected Behavior

The adapter should let me specify the redirect_uri and have the code exchange work fine

Actual Behavior

looks for the redirect_uri in the searchParams of the request and fails with bad_redirect_uri during code exchange

Code Sample

Chat SDK Version

4.21.0

Node.js Version

25.7.0

Platform Adapter

Slack

Operating System

macOS

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions