Feat: Add User Authentication and Authorization System (Signup/Login)

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

@AbhinavSenGitHub がすでに取り組んでいます。

2025年11月3日 から。

  • #120 @harshitaphadtare による — マージされずにクローズ

評価

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

調査の方向性

ファイルやテストは指定されていません。まず既存の FastAPI ルート、Next.js の認証サーフェス、MongoDB 統合を調査し、その後、提案されたスコープと進行中の実装について maintainer と確認してください。完了とみなすには、列挙された登録、セッション、保護されたルート、プロフィール、ユーザーデータの要件のうち、合意したサブセットが実装され、検証されている必要があります。

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

説明

Is your feature request related to a problem? Please describe.

Currently, the Perspective application lacks user authentication and authorization mechanisms. This means:

  • Users cannot create accounts or maintain personalized sessions
  • There's no way to track individual usage or enforce rate limiting per user
  • Saved analyses, chat history, and preferences cannot be persisted across sessions
  • The application cannot scale to a production-ready system with proper access control
  • No protection exists for API endpoints against abuse or unauthorized access

Describe the solution you'd like

Implement a comprehensive authentication and authorization system with the following features:

Backend (FastAPI):

  • User registration endpoint with email verification
  • Secure login/logout functionality using JWT tokens
  • Password hashing with bcrypt or argon2
  • Token refresh mechanism for extended sessions
  • Protected API routes with authentication middleware
  • Rate limiting per authenticated user
  • User profile management (view/update profile)

Frontend (Next.js):

  • Clean signup/login forms with validation
  • Secure token storage (httpOnly cookies or secure localStorage)
  • Authentication state management (Context API or Zustand)
  • Protected routes that redirect unauthenticated users
  • User profile dashboard
  • Session persistence and auto-refresh
  • Logout functionality with token cleanup

Database:

  • User table with fields: id, email, username, hashed_password, created_at, is_verified
  • Integration with MongoDB database for user-specific data

Potential Impact

Who will benefit:

  • End users - Personalized experience, saved history, secure access
  • Project maintainers - Better abuse prevention, usage analytics, scalable infrastructure
  • Contributors - Foundation for advanced features (sharing, collaboration, premium tiers)
  • Community - Production-ready system that can be deployed publicly

Expected impact:

  • Security: Prevents API abuse and unauthorized access
  • Scalability: Enables per-user rate limiting and resource management
  • User Experience: Persistent sessions, saved preferences, analysis history
  • Monetization potential: Foundation for freemium/premium features
  • Data privacy: User-specific data isolation and GDPR compliance readiness
  • Analytics: Track user engagement, popular features, and system usage

@ParagGhatage i have been working on the code for this issue. once this is approved by you i shall raise the pr.

主要言語
TypeScript
スター
58
フォーク
90
平均マージ
11時間 51分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

AOSSIE-Org/Perspective のほかの issue

AOSSIE-Org/Perspective の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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