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
In the OAuth flow support, the installation URL /slack/install displays a web page with an installation button. If a developer would like to use the /slack/install as the URL for direct install URL on App Directory listing page, end-users have to click button twice. Bolt can provide an option to easily change the handler for /slack/install URL.
I propose adding a new option named install_page_rendering_enabled: bool = True to OAuthSettings and AsyncOAuthSettings. The default is True, which is backward-compatible.
It does not provide a way to customize the behavior yet. Developers needs to create a yet another endpoint to immediately redirect users to the Slack authorize URL by directly using installer.generateInstallUrl.
In the OAuth flow support, the installation URL
/slack/install
displays a web page with an installation button. If a developer would like to use the/slack/install
as the URL for direct install URL on App Directory listing page, end-users have to click button twice. Bolt can provide an option to easily change the handler for/slack/install
URL.I propose adding a new option named
install_page_rendering_enabled: bool = True
toOAuthSettings
andAsyncOAuthSettings
. The default isTrue
, which is backward-compatible.Implementation
A possible implementation using the new option should look like this:
Other Bolt frameworks
Bolt for JS
It does not provide a way to customize the behavior yet. Developers needs to create a yet another endpoint to immediately redirect users to the Slack authorize URL by directly using
installer.generateInstallUrl
.https://github.com/slackapi/bolt-js/blob/%40slack/bolt%402.5.0/src/ExpressReceiver.ts#L122-L137
Bolt for Java
It already has the
AppConfig#oAuthInstallPageRenderingEnabled
(default: true) option.Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: