Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add Optional Two-Factor Authentication (2FA) for User Accounts

オープン
#422 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby

調査の方向性

まず、issue に記載されている既存のアカウント設定、認証フロー、ユーザーテーブルを見つけます。rotp と rqrcode がこれらのエントリーポイントにどのように組み込めるかを確認し、オプトインの 2FA、TOTP ログイン、安全なシークレット、バックアップコードによるリカバリーが、記載された受け入れ基準を満たしていることを検証します。

索引モデルが issue の本文から書いたものです。

説明

Requirements Incomplete

To improve account security, we should add optional two-factor authentication (2FA) for users. This will allow users to enable 2FA via TOTP (e.g., Google Authenticator, Authy) in their account settings, but not require it for all users.

Requirements:

  • Users can enable or disable 2FA from their account settings.
  • When enabled, users must scan a QR code with an authenticator app to set up 2FA.
  • On login, if 2FA is enabled, users must enter a valid TOTP code after password authentication.
  • Users should be able to generate and view backup codes for account recovery.
  • Store TOTP secrets and backup codes securely.
  • UI/UX for enabling/disabling 2FA, entering codes, and managing backup codes.

Technical Notes:

  • Use the rotp gem for TOTP generation/validation.
  • Use the rqrcode gem to generate QR codes.
  • Add otp_secret and otp_backup_codes columns to the users table.
  • Update authentication flow to require TOTP code if 2FA is enabled.

Acceptance Criteria:

  • Users can opt in/out of 2FA.
  • 2FA is enforced only for users who have enabled it.
  • Backup codes are available and can be regenerated.
  • All sensitive data is handled securely.
主要言語
Ruby
スター
16
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rubyforgood/skillrx のほかの issue

rubyforgood/skillrx の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。