Slack apps installed on multiple workspaces will need to implement OAuth, then store installation information (like access tokens) securely. By providing
state_store when initializing App, Bolt for Python will handle the work of setting up OAuth routes and verifying state. If you’re implementing a custom adapter, you can make use of our OAuth library, which is what Bolt for Python uses under the hood.
Bolt for Python will create a Redirect URL
slack/oauth_redirect, which Slack uses to redirect users after they complete your app’s installation flow. You will need to add this Redirect URL in your app configuration settings under OAuth and Permissions. This path can be configured in the
OAuthSettings argument described below.
Bolt for Python will also create a
slack/install route, where you can find an Add to Slack button for your app to perform direct installs of your app. If you need any additional authorizations (user tokens) from users inside a team when your app is already installed or a reason to dynamically generate an install URL, you can pass your own custom URL generator to
To learn more about the OAuth installation flow with Slack, read the API documentation.