You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described at #732 , there is no way to directly redirect installers to the authorize url with the out-of-the-box receivers. Also, the code that generates the /slack/install endpoint is not yet customizable for developers.
Workaround
a workaround as of today is to implement your own /slack/install endpoint using receiver.router. Refer to this document to know how to add your custom endpoints to Bolt apps.
You can use the custom endpoint for Direct install URL of an App Directory app. To learn how to generate a valid set of parameters, checking this code is helpful. Your app can set a generated URL for "Location" header along with status 302 in response to HTTP requests.
In Bolt for Python (and also Bolt for Java), we have an option to switch to a Direct Install URL compatible behavior. slackapi/bolt-python#183
We can add a similar option to change the behavior. If the page rendering is disabled (default: enabled), Bolt redirects installers to generated authorize URL.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
example code related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
#1079)
* Fix#977 Add a way to turn off web page rendering for "/slack/install"
* Remove package-lock.json from the example app
* Apply suggestions from code review
Co-authored-by: Fil Maj <maj.fil@gmail.com>
* Add bolt to dependencies
* Comment out the new flag in the example app
* Rename directInstallUrlEnabled to directInstall
* Apply suggestions from code review
Co-authored-by: Sarah Jiang <srajiang@gmail.com>
Co-authored-by: Fil Maj <maj.fil@gmail.com>
Co-authored-by: Sarah Jiang <srajiang@gmail.com>
Description
As described at #732 , there is no way to directly redirect installers to the authorize url with the out-of-the-box receivers. Also, the code that generates the
/slack/install
endpoint is not yet customizable for developers.Workaround
a workaround as of today is to implement your own
/slack/install
endpoint usingreceiver.router
. Refer to this document to know how to add your custom endpoints to Bolt apps.You can use the custom endpoint for Direct install URL of an App Directory app. To learn how to generate a valid set of parameters, checking this code is helpful. Your app can set a generated URL for "Location" header along with status 302 in response to HTTP requests.
Solution
In Bolt for Python (and also Bolt for Java), we have an option to switch to a Direct Install URL compatible behavior. slackapi/bolt-python#183
We can add a similar option to change the behavior. If the page rendering is disabled (default: enabled), Bolt redirects installers to generated authorize URL.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: