Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add token rotation section to docs #1009

Merged
merged 4 commits into from
Jul 21, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_advanced/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Adding context
lang: en
slug: context
order: 6
order: 7
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/conversation_store.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Conversation stores
lang: en
slug: conversation-store
order: 3
order: 4
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/custom_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Adding Custom HTTP routes
lang: en
slug: custom-routes
order: 9
order: 10
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Logging
lang: en
slug: logging
order: 7
order: 8
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/middleware_global.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Global middleware
lang: en
slug: global-middleware
order: 4
order: 5
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/middleware_listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Listener middleware
lang: en
slug: listener-middleware
order: 5
order: 6
---

<div class="section-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/_advanced/receiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Customizing a receiver
lang: en
slug: receiver
order: 8
order: 9
---

<div class="section-content">
Expand Down
16 changes: 16 additions & 0 deletions docs/_advanced/token_rotation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Token rotation
lang: en
slug: token-rotation
order: 3
---

<div class="section-content">
Supported in Bolt for JavaScript as of v3.5.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).

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.

Bolt for JavaScript supports and will handle token rotation automatically so long as the [built-in OAuth](https://slack.dev/bolt-js/concepts#authenticating-oauth) functionality is used.

For more information about token rotation, please see the [documentation](https://api.slack.com/authentication/rotation).
</div>