Module slack_bolt.authorization.authorize_args
Expand source code
from logging import Logger
from typing import Optional
from slack_sdk.web import WebClient
from slack_bolt.context.context import BoltContext
class AuthorizeArgs:
context: BoltContext
logger: Logger
client: WebClient
enterprise_id: Optional[str]
team_id: Optional[str]
user_id: Optional[str]
def __init__(
self,
*,
context: BoltContext,
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 AuthorizeArgs: context: BoltContext logger: Logger client: WebClient enterprise_id: Optional[str] team_id: Optional[str] user_id: Optional[str] def __init__( self, *, context: BoltContext, 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