[Task] Complete organization App token renewal using existing SDK providers
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
从 ADR github/copilot#30449、先前的工作 github/copilot-sdk#1748 以及父 epic github/copilot#30409 开始。检查 SDK 的 credential-provider 和 session-auth 入口点,然后协调运行时 credential 更新与随附的 CLI。完成标准包括:安全的 S2S 和 U2S refresh、过期时的 retry 行为、保留静态 token、SDK 行为保持一致或分阶段实施,以及安全的公共文档。
由索引模型根据 Issue 内容生成。
描述
Outcome
Long-running SDK sessions can refresh GitHub App credentials without restarting the session or forcing repeated OAuth flows.
Scope
- Add a supported credential-provider mechanism for lazy or proactive refresh
- Support S2S installation token re-minting before or after the one-hour expiry
- Support U2S refresh tokens and discoverable token lifetime policies
- Retry safely when a token expires during a turn
- Replace reliance on the experimental
session.auth.setCredentialsworkaround - Preserve existing static token behavior
Acceptance criteria
- A session running longer than one S2S token lifetime continues without manual token injection
- A request encountering token expiry can obtain a fresh credential and retry without duplicating unsafe work
- U2S refresh does not force a new interactive OAuth flow on normal expiry
- Refresh failures surface clearly and never silently fall back to another identity
- Node, Go, .NET, and Java SDK behavior is consistent or explicitly staged
- Public SDK documentation includes secure private-key and refresh guidance
Dependencies
Coordinate runtime credential update behavior with the bundled CLI. The basic gitHubToken acceptance fix remains tracked in github/copilot#30423.
References
- Parent epic https://github.com/github/copilot/issues/30409
- ADR https://github.com/github/copilot/pull/30449
- Existing prior art github/copilot-sdk#1748
- 主要语言
- Java
- 星标
- 10.5k
- 派生
- 1.5k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 130
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-sdk 的其他 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2759 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
github/copilot-sdk#2709 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
github/copilot-sdk#2673 ·
查看 github/copilot-sdk 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
apache/flink-agents#1152 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
jenkinsci/blueocean-plugin#5417 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/eo-graphs#75 ·