CredentialsManager should also extract scopes when populating auth schemes
还没有人认领这个 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/adk-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
google/adk-python#7265 · 1 条评论 ·
-
mcp
难度 2/5 1-3 小时 新手友好度 75/100
google/adk-python#7217 · 3 条评论 · 已指派 1 人 ·
-
tools
难度 2/5 1-3 小时 新手友好度 78/100
google/adk-python#7206 · 1 条评论 · 已指派 1 人 ·
-
request clarification tools
难度 2/5 1-3 小时 新手友好度 86/100
google/adk-python#7205 · 2 条评论 · 已指派 1 人 ·
-
mcp request clarification
难度 2/5 1-3 小时 新手友好度 78/100
google/adk-python#7196 · 2 条评论 · 已指派 1 人 ·
查看 google/adk-python 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100