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

Endpoint /api/v1/users/validate checks if access and refresh token received matches database

未关闭
#6,256 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 18 天内回复

还没有人认领这个 Issue。

  • #6264 来自 @7riumph —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
rails, ruby

调研方向

从 issue 中链接的 app/controllers/api/v1 文件夹开始,追踪现有的 user API 路由结构。添加 POST /api/v1/users/validate 入口点,然后验证它是否将经过哈希处理的 access token 和 refresh token 与数据库摘要进行比较,并根据有效性返回 true 或 false。

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

描述

no-issue-activity

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/validate post route to api/v1/ ( /api/v1/users/validate )
  • Hashes then compares received access token and refresh token to value stored in database digests
    ( access_token_digestand refresh_token_digest )
  • Returns boolean, true or false, based on validity in response
Helpful Links

API Folder Structure

主要语言
Ruby
星标
382
派生
546
平均合并
12 天 12 小时
30 天内合并 PR
17

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

rubyforgood/casa 的其他 Issue

查看 rubyforgood/casa 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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