Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_advanced/ja_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: コンテキストの追加
lang: ja-jp
slug: context
order: 7
order: 9
---

<div class="section-content">
Expand Down Expand Up @@ -69,4 +69,4 @@ def show_tasks(event, client, context):
"blocks": context["blocks"]
}
)
```
```
4 changes: 2 additions & 2 deletions docs/_advanced/ja_global_middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: グローバルミドルウェア
lang: ja-jp
slug: global-middleware
order: 6
order: 8
---

<div class="section-content">
Expand Down Expand Up @@ -34,4 +34,4 @@ def auth_abc(client, context, logger, payload, next):
# 次のミドルウェアに実行権を渡します
next()
```
</div>
</div>
2 changes: 1 addition & 1 deletion docs/_advanced/ja_lazy_listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Lazy リスナー(FaaS)
lang: ja-jp
slug: lazy-listeners
order: 9
order: 10
---

<div class="section-content">
Expand Down
4 changes: 2 additions & 2 deletions docs/_advanced/ja_listener_middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: リスナーミドルウェア
lang: ja-jp
slug: listener-middleware
order: 5
order: 7
---

<div class="section-content">
Expand Down Expand Up @@ -38,4 +38,4 @@ def no_bot_messages(message) -> bool:
def log_message(logger, event):
logger.info(f"(MSG) User: {event['user']}\nMessage: {event['text']}")
```
</div>
</div>
16 changes: 16 additions & 0 deletions docs/_advanced/ja_token_rotation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: トークンのローテーション
lang: ja-jp
slug: token-rotation
order: 6
---

<div class="section-content">
Bolt for Python [v1.7.0](https://github.com/slackapi/bolt-python/releases/tag/v1.7.0) から、アクセストークンのさらなるセキュリティ強化のレイヤーであるトークンローテーションの機能に対応しています。トークンローテーションは [OAuth V2 の RFC](https://datatracker.ietf.org/doc/html/rfc6749#section-10.4) で規定されているものです。

既存の Slack アプリではアクセストークンが無期限に存在し続けるのに対して、トークンローテーションを有効にしたアプリではアクセストークンが失効するようになります。リフレッシュトークンを利用して、アクセストークンを長期間にわたって更新し続けることができます。

[Bolt for Python の組み込みの OAuth 機能](https://slack.dev/bolt-python/concepts#authenticating-oauth) を使用していれば、Bolt for Python が自動的にトークンローテーションの処理をハンドリングします。

トークンローテーションに関する詳細は [API ドキュメント](https://api.slack.com/authentication/rotation)を参照してください。
</div>