Skip to content

Commit

Permalink
Update authorization.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Sep 18, 2024
1 parent 736185a commit c959966
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def authorize(enterprise_id, team_id, logger):
# トークンを取得するためのあなたのロジックをここに記述します
for team in installations:
# 一部のチームは enterprise_id を持たない場合があります
is_valid_enterprise = True if (("enterprise_id" not in team) or (enterprise_id == team["enterprise_id"])) else False
if ((is_valid_enterprise == True) and (team["team_id"] == team_id)):
is_valid_enterprise = "enterprise_id" not in team or enterprise_id == team["enterprise_id"]
if is_valid_enterprise and team["team_id"] == team_id:
# AuthorizeResult のインスタンスを返します
# bot_id と bot_user_id を保存していない場合、bot_token を使って `from_auth_test_response` を呼び出すと、自動的に取得できます
return AuthorizeResult(
Expand All @@ -65,4 +65,4 @@ app = App(
signing_secret=os.environ["SLACK_SIGNING_SECRET"],
authorize=authorize
)
```
```

0 comments on commit c959966

Please sign in to comment.