Endpoint /api/v1/users/validate checks if access and refresh token received matches database
维护者通常 18 天内回复
还没有人认领这个 Issue。
- #6264 来自 @7riumph —— 已关闭,未合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- api, authentication, backend
调研方向
从 issue 中链接的 app/controllers/api/v1 文件夹开始,追踪现有的 user API 路由结构。添加 POST /api/v1/users/validate 入口点,然后验证它是否将经过哈希处理的 access token 和 refresh token 与数据库摘要进行比较,并根据有效性返回 true 或 false。
由索引模型根据 Issue 内容生成。
描述
Part of epic #3942
What type of user does this affect?
- volunteers
How should it operate? ⚙️🛠️
There should now be an api/v1/users/validateroute that receives an access and refresh token, then checks validity.
Acceptance Criteria
- Adds
users/validatepost route toapi/v1/( /api/v1/users/validate ) - Hashes then compares received
access tokenandrefresh tokento value stored in database digests
(access_token_digestandrefresh_token_digest) - Returns boolean,
trueorfalse, based on validity in response
Helpful Links
- 主要语言
- Ruby
- 星标
- 382
- 派生
- 546
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 17
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rubyforgood/casa 的其他 Issue
-
Bug: Reassigned cases are listed under "Not Assigned" in the Assign a new case dropdown可能已有人在做 @Anandb71 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
rubyforgood/casa#7241 · 2 条评论 ·
维护者通常 18 天内回复
-
Help Wanted Type: Bug
难度 4/5 1-2 天 新手友好度 35/100
rubyforgood/casa#7243 ·
维护者通常 18 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
rubyforgood/casa#7227 ·
维护者通常 18 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
rubyforgood/casa#7218 ·
维护者通常 18 天内回复
-
Speed up the RSpec suite: parallelize CI, then shrink the JS system-spec slice可能重新可做 @Sufiyan-MSA 于 46 天前认领,目前没有进行中的 PR。 未关闭📈 Performance Improvement 🧪 Tests
难度 5/5 一周以上 新手友好度 35/100
rubyforgood/casa#7173 · 3 条评论 ·
维护者通常 18 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
voxpupuli/puppet-archive#566 ·
-
area/tech debt
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
verified
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 5 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
akitaonrails/ai-book-2026#10 ·