Module slack_bolt.authorization.authorize_args

Classes

class AuthorizeArgs (*, context: BoltContext, enterprise_id: Optional[str], team_id: Optional[str], 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
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

var client : slack_sdk.web.client.WebClient
var contextBoltContext
var enterprise_id : Optional[str]
var logger : logging.Logger
var team_id : Optional[str]
var user_id : Optional[str]