Skip to content

Commit 35baf08

Browse files
authored
Add section in docs for token rotation (#413)
1 parent f0d2699 commit 35baf08

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

docs/_advanced/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Adding context
33
lang: en
44
slug: context
5-
order: 7
5+
order: 9
66
---
77

88
<div class="section-content">

docs/_advanced/global_middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Global middleware
33
lang: en
44
slug: global-middleware
5-
order: 6
5+
order: 8
66
---
77

88
<div class="section-content">

docs/_advanced/lazy_listener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Lazy listeners (FaaS)
33
lang: en
44
slug: lazy-listeners
5-
order: 9
5+
order: 10
66
---
77

88
<div class="section-content">

docs/_advanced/listener_middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Listener middleware
33
lang: en
44
slug: listener-middleware
5-
order: 5
5+
order: 7
66
---
77

88
<div class="section-content">

docs/_advanced/token_rotation.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Token rotation
3+
lang: en
4+
slug: token-rotation
5+
order: 6
6+
---
7+
8+
<div class="section-content">
9+
Supported in Bolt for Python as of [v1.7.0](https://github.com/slackapi/bolt-python/releases/tag/v1.7.0), token rotation provides an extra layer of security for your access tokens and is defined by the [OAuth V2 RFC](https://datatracker.ietf.org/doc/html/rfc6749#section-10.4).
10+
11+
Instead of an access token representing an existing installation of your Slack app indefinitely, with token rotation enabled, access tokens expire. A refresh token acts as a long-lived way to refresh your access tokens.
12+
13+
Bolt for Python supports and will handle token rotation automatically so long as the [built-in OAuth](https://slack.dev/bolt-python/concepts#authenticating-oauth) functionality is used.
14+
15+
For more information about token rotation, please see the [documentation](https://api.slack.com/authentication/rotation).
16+
</div>

0 commit comments

Comments
 (0)