File size: 1,184 Bytes
0827183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


class SlackClientOptions:
    """
    Defines the implementation of the SlackClient options.
    """

    def __init__(
        self,
        slack_verification_token: str,
        slack_bot_token: str,
        slack_client_signing_secret: str,
    ):
        """
        Initializes a new instance of SlackClientOptions.

        :param slack_verification_token: A token for validating the origin of incoming webhooks.
        :type slack_verification_token: str
        :param slack_bot_token: A token for a bot to work on a single workspace.
        :type slack_bot_token: str
        :param slack_client_signing_secret: The token used to validate that incoming webhooks originated from Slack.
        :type slack_client_signing_secret: str
        """
        self.slack_verification_token = slack_verification_token
        self.slack_bot_token = slack_bot_token
        self.slack_client_signing_secret = slack_client_signing_secret
        self.slack_client_id = None
        self.slack_client_secret = None
        self.slack_redirect_uri = None
        self.slack_scopes = [str]