@@ -39,6 +39,7 @@ class AsyncOAuthSettings:
3939 authorization_url : str # default: https://slack.com/oauth/v2/authorize
4040 # Installation Management
4141 installation_store : AsyncInstallationStore
42+ installation_store_bot_only : bool
4243 authorize : AsyncAuthorize
4344 # state parameter related configurations
4445 state_store : AsyncOAuthStateStore
@@ -69,6 +70,7 @@ def __init__(
6970 authorization_url : Optional [str ] = None ,
7071 # Installation Management
7172 installation_store : Optional [AsyncInstallationStore ] = None ,
73+ installation_store_bot_only : bool = False ,
7274 # state parameter related configurations
7375 state_store : Optional [AsyncOAuthStateStore ] = None ,
7476 state_cookie_name : str = OAuthStateUtils .default_cookie_name ,
@@ -90,6 +92,7 @@ def __init__(
9092 :param failure_url: Set a complete URL if you want to redirect end-users when an installation fails.
9193 :param authorization_url: Set a URL if you want to customize the URL https://slack.com/oauth/v2/authorize
9294 :param installation_store: Specify the instance of InstallationStore (Default: FileInstallationStore)
95+ :param installation_store_bot_only: Use AsyncInstallationStore#find_bot if True (Default: False)
9396 :param state_store: Specify the instance of InstallationStore (Default: FileOAuthStateStore)
9497 :param state_cookie_name: The cookie name that is set for installers' browser. (Default: slack-app-oauth-state)
9598 :param state_expiration_seconds: The seconds that the state value is alive (Default: 600 seconds)
@@ -129,8 +132,11 @@ def __init__(
129132 self .installation_store = (
130133 installation_store or get_or_create_default_installation_store (client_id )
131134 )
135+ self .installation_store_bot_only = installation_store_bot_only
132136 self .authorize = AsyncInstallationStoreAuthorize (
133- logger = logger , installation_store = self .installation_store ,
137+ logger = logger ,
138+ installation_store = self .installation_store ,
139+ bot_only = self .installation_store_bot_only ,
134140 )
135141 # state parameter related configurations
136142 self .state_store = state_store or FileOAuthStateStore (
0 commit comments