[feature]: API v2 needs a fine-grained OAuth scope for GET /api/v2/users/me/
维护者通常 1 天内回复
@dheeru0198 已经在做这个了。
开始于 2026年11月18日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python, typescript
- 领域
- api, authentication
调研方向
Start by reading the v2 OAuth scope table and the authentication checks for GET /api/v2/users/me/, then compare them with the v1 profile:read handling. Add a fine-grained scope for the endpoint, or clarify the intended global read requirement in the scope table and migration guide. Done when the scope behavior and documentation consistently match the chosen policy.
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue for this?
- I have searched the existing issues
Summary
GET /api/v2/users/me/ cannot be called by an OAuth token that holds only fine-grained scopes. The v2 authentication docs say it needs the global read scope, and that "no fine-grained scope covers this endpoint". Please add a fine-grained scope that covers it (for example a v2 profile scope), or document that global read is intended.
Related: #10201 reports that the docs' example response for this endpoint lists only fine-grained scopes, which contradicts the rule above. This request is about the scope model itself rather than the docs example, so a docs fix alone would not resolve it.
Why should this be worked on?
v1 has profile:read, and GET /api/v1/users/me/ works with it. In v2 that scope is not in the scope table, and no other scope covers the endpoint. An OAuth app that only needs to know who the signed-in user is has to request global read (read access to every resource in the workspace) or keep calling the v1 endpoint.
Observed: an OAuth token granted profile:read plus fine-grained project scopes (projects:read, projects.states:read, projects.work_items:read, projects.work_items:write, projects.work_items.links:read, projects.work_items.links:write):
GET /api/v1/users/me/returns 200GET /api/v2/users/me/returns 403HTTP 403 forbidden: You do not have permission to perform this action.- the same token can list and write work items through
/api/v2/workspaces/{slug}/projects/{project}/work-items/
The release notes for 4.1.0 don't mention a change to this endpoint or its scope. Observed on commercial v4.0.1.
The endpoint returns only the caller's own id, display_name, email, principal_kind and scopes, so requiring access to every workspace resource is more than it needs.
There is no other v2 endpoint that tells a caller who they are. The closest are permissions/me/ (grants and role only, no user id) and the workspace and project member lists (every member, with no way to tell which is the caller). Apps that key per-user state on the user id, such as saved ordering or preferences, have no least-privilege way to get it in v2.
Suggested options:
- Add a fine-grained scope (for example
profile:read, or a v2 equivalent) that satisfiesGET /api/v2/users/me/. - Or, if global
readis intended, say so in the scope table and in the migration guide's note on OAuth scopes, and mention thatprofile:readdoes not carry over from v1.
- 主要语言
- TypeScript
- 星标
- 63k
- 派生
- 6.5k
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 70
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
makeplane/plane 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
[bug]: Comment external_id is deduplicated per project instead of per work item可能已有人在做 @MishraTanishq619 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
makeplane/plane#10195 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes可能已有人在做 @ghazy2001 于 29 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
makeplane/plane#10111 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
makeplane/plane#10082 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
good first issue help wanted
难度 2/5 1 小时以内 新手友好度 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
open-webui/open-webui#35184 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
danielmiessler/LifeOS#3001 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复