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

CredentialsManager should also extract scopes when populating auth schemes

未关闭 适合新手
#7,266 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

从 src/google/adk/auth/credential_manager.py 第 443 行附近开始,这里 CredentialsManager 为 OAuth Authorization Code Flows 填充 auth scheme。将 discovery response 的 scopes_supported 字段与 auth scheme 对象进行比较,并确认支持的 scopes 已被复制;当 authorization URLs 可以使用这些已发现的 scopes 而无需手动重复时,修改就完成了。

由索引模型根据 Issue 内容生成。

描述

Today, when CredentialsManager populates the auth scheme for OAuth Authorization Code Flows, it only populates the Authorize and Token URLs.

Looking at the discovery documents created by FastMCP, the document also contains the supported scopes, which are required when creating the authorization URL. The field's name in the discovery file is scopes_supported
(see step 2, Protected Resource Metadata Discovery)

Currently the alternative is to manually add these scopes to the AuthScheme when configuring it, basically duplicating what is already available to the code through the discovery endpoint.

Please consider adding the required code to also copy the scopes from the discovery response to the auth scheme object.

主要语言
Python
星标
21.6k
派生
4k
平均合并
7 小时 10 分钟
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

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

google/adk-python 的其他 Issue

查看 google/adk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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