Feat: Add User Authentication and Authorization System (Signup/Login)
@AbhinavSenGitHub ya está trabajando en esto.
Desde el 3/11/2025.
- #120 de @harshitaphadtare — cerrado sin fusionar
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- fastapi, mongodb, next.js
- Área
- authentication, authorization, backend, database, frontend
Línea de trabajo
No se nombran archivos ni pruebas. Empieza inspeccionando las rutas existentes de FastAPI, las superficies de autenticación de Next.js y la integración con MongoDB; después, confirma con el mantenedor el alcance propuesto y la implementación en curso. Se consideraría terminado cuando se haya implementado y verificado un subconjunto acordado de los requisitos enumerados de registro, sesión, rutas protegidas, perfil y datos de usuario.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 58
- Forks
- 90
- Merge medio
- 11 h 51 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/Perspective
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
AOSSIE-Org/Perspective#191 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
AOSSIE-Org/Perspective#190 ·
-
[BUG]: Missing input validation in URlRequest and ChatQuery causes 500 crashes and wasteful scraper executionPosiblemente ocupada @agarwalpranav0711 la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AOSSIE-Org/Perspective#178 ·
-
[BUG]: chunk_rag_data crashes with ValueError when perspective is a dict, silently dropping RAG vector storagePosiblemente ocupada @agarwalpranav0711 la tomó hace 36 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
AOSSIE-Org/Perspective#175 ·
-
[BUG]: Scraper passes headers as query params in requests.get (User-Agent never sent)Posiblemente ocupada @Th-Shivam la tomó hace 50 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
AOSSIE-Org/Perspective#161 · 1 comentario ·
Todos los issues de AOSSIE-Org/Perspective
Issues similares
-
documentation lens:human needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
thebristolsound/birdbrain#2246 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
A voting window past about 69.9 million hours stores a deadline that reads back as no deadlineAbiertobug ready-for-human
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
BoardGamesEmpire/board-games-empire-backend#1452 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue stretch
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día