Skip to content

A high-performance and secure authentication microservice using FastAPI, MongoDB, Redis, and JWT. Easily integrable with any application needing user login, registration, and protected route access.

Notifications You must be signed in to change notification settings

RohitManvar/Authentication-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 FastAPI Authentication Service

A high-performance and secure authentication microservice using FastAPI, MongoDB, Redis, and JWT. This service handles user registration, login, protected routes, and token-based authentication, with optional session/token management via Redis.


🚀 Features

  • 🧾 JWT-based token authentication (Access + Refresh tokens)
  • 🗃️ MongoDB for user data storage (motor async driver)
  • 🔄 Redis for refresh/session token storage or blacklisting
  • 🔑 Secure password hashing with Bcrypt
  • ✅ Input validation with Pydantic
  • 🌐 minimal frontend for login/register testing

🛠️ Tech Stack

  • FastAPI – Modern Python web framework
  • MongoDB – NoSQL database for storing users
  • Redis – Session/token storage & blacklisting
  • Pydantic – Data validation
  • bcrypt – Password hashing
  • python-jose – JWT handling

Login

image

Register

image

Authetication Successful

image

About

A high-performance and secure authentication microservice using FastAPI, MongoDB, Redis, and JWT. Easily integrable with any application needing user login, registration, and protected route access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published