Please add `app.get_new_client()` to help with token rotation
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- api, authentication
调研方向
先查看讨论 #1324,然后检查入口点 slack_bolt.App 和 slack_bolt.async_app.AsyncApp,以及它们在 token 轮换期间如何使用 InstallationStore。完成的标准是,调用方无需自行处理 store,即可通过所请求的方法获取为某个团队新创建的客户端,并且同步和异步应用都必须支持这一点。
由索引模型根据 Issue 内容生成。
描述
From a discussion in #1324, the only safe way to call the client from outside a bolt handler when token rotation is on is to create a new client each time (as the handlers do)
Since Bolt is currently handling all of this for us, it'd be very useful to have a method along the lines of
client = await bolt.get_new_client(team_id)
that means callers do not need to deal with the InstallationStore and such themselves.
Category (place an x in each of the [ ])
- slack_bolt.App and/or its core components
- slack_bolt.async_app.AsyncApp and/or its core components
- Adapters in slack_bolt.adapter
- Others
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
- 主要语言
- Python
- 星标
- 1.3k
- 派生
- 288
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 10
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
slackapi/bolt-python 的其他 Issue
-
docs enhancement server-side
难度 1/5 1 小时以内 新手友好度 88/100
slackapi/bolt-python#1576 · 1 条评论 ·
-
auto-triage-skip bug security semver:major
难度 2/5 1-3 小时 新手友好度 72/100
slackapi/bolt-python#1447 · 9 条评论 ·
-
难度 3/5 1-2 天 新手友好度 65/100
slackapi/bolt-python#1577 ·
-
area:async auto-triage-skip dependencies
难度 3/5 1-2 天 新手友好度 65/100
slackapi/bolt-python#1472 · 1 条评论 · 1 个 reaction ·
-
auto-triage-skip enhancement
slackapi/bolt-python#1346 · 2 条评论 · 已指派 1 人 ·
查看 slackapi/bolt-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 62/100
AiursoftWeb/AnduinOS-2#19 ·