@@ -32,6 +32,7 @@ class AsyncOAuthSettings:
3232 redirect_uri : Optional [str ]
3333 # Handler configuration
3434 install_path : str
35+ install_page_rendering_enabled : bool
3536 redirect_uri_path : str
3637 callback_options : Optional [CallbackOptions ] = None
3738 success_url : Optional [str ]
@@ -63,6 +64,7 @@ def __init__(
6364 redirect_uri : Optional [str ] = None ,
6465 # Handler configuration
6566 install_path : str = "/slack/install" ,
67+ install_page_rendering_enabled : bool = True ,
6668 redirect_uri_path : str = "/slack/oauth_redirect" ,
6769 callback_options : Optional [CallbackOptions ] = None ,
6870 success_url : Optional [str ] = None ,
@@ -86,6 +88,7 @@ def __init__(
8688 :param user_scopes: Check the value in Settings > Manage Distribution
8789 :param redirect_uri: Check the value in Features > OAuth & Permissions > Redirect URLs
8890 :param install_path: The endpoint to start an OAuth flow (Default: /slack/install)
91+ :param install_page_rendering_enabled: Renders a web page for install_path access if True
8992 :param redirect_uri_path: The path of Redirect URL (Default: /slack/oauth_redirect)
9093 :param callback_options: Give success/failure functions f you want to customize callback functions.
9194 :param success_url: Set a complete URL if you want to redirect end-users when an installation completes.
@@ -119,6 +122,7 @@ def __init__(
119122 self .install_path = install_path or os .environ .get (
120123 "SLACK_INSTALL_PATH" , "/slack/install"
121124 )
125+ self .install_page_rendering_enabled = install_page_rendering_enabled
122126 self .redirect_uri_path = redirect_uri_path or os .environ .get (
123127 "SLACK_REDIRECT_URI_PATH" , "/slack/oauth_redirect"
124128 )
0 commit comments