{"repo":"moeinrezai/FastAPI-Authentication","free":true,"listed":false,"github":"https://github.com/moeinrezai/FastAPI-Authentication","clone":"git clone https://github.com/moeinrezai/FastAPI-Authentication.git","description":"A secure and production-oriented FastAPI authentication system with JWT, RBAC, session management, HttpOnly cookies, token rotation, device fingerprinting, and security features.","language":"Python","stars":15,"topics":["access-control","authentication","authorization","fastapi","fastapi-crud","fastapi-sqlalchemy","jwt","jwt-auth","jwt-authentication","jwt-token"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"🔐 FastAPI Authentication System سیستم احراز هویت پیشرفته FastAPI A Production-Grade JWT Authentication System with RBAC, Session Management, and Security Features --- English فارسی --- English 🌟 Overview A comprehensive, production-ready authentication system built with FastAPI that implements modern security best practices including JWT tokens, HttpOnly cookies, role-based access control (RBAC), session management, and advanced security features. ✨ Key Features 🔐 Authentication & Authorization - JWT Access & Refresh Tokens with automatic rotation - HttpOnly Secure Cookies for token storage - Token Reuse Detection with family-based revocation - Device Fingerprinting based on IP + User-Agent - Role-Based Access Control (RBAC) with 4 roles: - USER : Basic access - SUPPORT : Ticket management - MANAGER : User management + logs - ADMIN : Full system access 🛡️ Security Features - Password Hashing with bcrypt (12 rounds) - Account Lockout after 5 failed login attempts - Rate Limiting on all sensitive endpoints - Session Management with per-device tracking - Security Logging for all authentication events - CSRF Protection via SameSite cookies - Maximum Sessions Per User (configurable) 🎯 API Features - Auto-login on Register for better UX - Token Refresh without re-authentication - Multi-session Support with individual revocation - Swagger UI with automatic documentation - Async SQLAlchemy with PostgreSQL/SQLite support - Alembic Migrations for database versioning 🚀 Quick Start","default_branch":null,"files":null,"tree":[],"storefront":"/r/moeinrezai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/moeinrezai/FastAPI-Authentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}