Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Task] Complete organization App token renewal using existing SDK providers

未关闭
#2,540 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
github, go, java, node.js

调研方向

从 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 内容生成。

描述

enhancement

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.setCredentials workaround
  • 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

主要语言
Java
星标
10.5k
派生
1.5k
平均合并
1 天 9 小时
30 天内合并 PR
130

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/copilot-sdk 的其他 Issue

查看 github/copilot-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。