redirectUri not being passed into installUrlOptions #1115
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Milestone
Description
We haven't been passing redirect_uri.
installRedirectUri
can be passed as an option underinstallerOptions
field during App initialization. The intended behavior is for this field to be Included in the request url parameters sent to the Slack v2 authorize endpoint. Currently this is not happening because theinstallUrlOptions
does not include this parameter. You can verify this by checking the install url generated by the Add to Slack ButtonMoreover when the path is properly passed, the our recommended relative path format in the docs e.g.
/slack/redirect
is invalid because it doesn't match the URI set on the Slack config side, and doesn't conform to Slack API format for the redirect_uri parameter from the oauth.v2.access method) (I confirmed this error by trying to hit this endpoint with a relative url). that Slack gives you an error page instead of properly redirecting to the OAuth page.Per api docs, either redirect_uri in the params OR redirect_uri set in the Slack App config OR both can be supplied. If both are supplied, they also have to match exactly.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: @slack/bolt 3..6.0
Steps to reproduce:
/slack/install
pathExpected result:
What you expected to happen - redirectUri passed in the oauth/v2/authorize request from client.
Actual result:
What actually happened redirect_uri is empty.
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: