Module slack_bolt.authorization.async_authorize_args
Expand source code
from logging import Logger
from typing import Optional
from slack_sdk.web.async_client import AsyncWebClient
from slack_bolt.context.async_context import AsyncBoltContext
class AsyncAuthorizeArgs:
context: AsyncBoltContext
logger: Logger
client: AsyncWebClient
enterprise_id: Optional[str]
team_id: Optional[str]
user_id: Optional[str]
def __init__(
self,
*,
context: AsyncBoltContext,
enterprise_id: Optional[str],
team_id: Optional[str], # can be None for org-wide installed apps
user_id: Optional[str],
):
"""The full list of the arguments passed to `authorize` function.
Args:
context: The request context
enterprise_id: The Organization ID (Enterprise Grid)
team_id: The workspace ID
user_id: The request user ID
"""
self.context = context
self.logger = context.logger
self.client = context.client
self.enterprise_id = enterprise_id
self.team_id = team_id
self.user_id = user_id
Classes
-
The full list of the arguments passed to
authorize
function.Args
context
- The request context
enterprise_id
- The Organization ID (Enterprise Grid)
team_id
- The workspace ID
user_id
- The request user ID
Expand source code
class AsyncAuthorizeArgs: context: AsyncBoltContext logger: Logger client: AsyncWebClient enterprise_id: Optional[str] team_id: Optional[str] user_id: Optional[str] def __init__( self, *, context: AsyncBoltContext, enterprise_id: Optional[str], team_id: Optional[str], # can be None for org-wide installed apps user_id: Optional[str], ): """The full list of the arguments passed to `authorize` function. Args: context: The request context enterprise_id: The Organization ID (Enterprise Grid) team_id: The workspace ID user_id: The request user ID """ self.context = context self.logger = context.logger self.client = context.client self.enterprise_id = enterprise_id self.team_id = team_id self.user_id = user_id
Class variables