Metadata-Version: 2.3
Name: JANUX-auth-gateway
Version: 0.1.4
Summary: A modular OAuth2 and JWT authentication gateway for FastAPI microservices.
License: Apache-2.0
Author: FOX Techniques
Author-email: ali.nabbi@fox-techniques.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: argon2-cffi (>=23.1.0,<24.0.0)
Requires-Dist: bcrypt (>=4.2.1,<5.0.0)
Requires-Dist: beanie (>=1.29.0,<2.0.0)
Requires-Dist: coloredlogs (>=15.0.1,<16.0.0)
Requires-Dist: fastapi[standard] (>=0.115.6,<0.116.0)
Requires-Dist: motor (==3.6.1)
Requires-Dist: passlib[bcrypt] (>=1.7.4,<2.0.0)
Requires-Dist: pyjwt[crypto] (>=2.10.1,<3.0.0)
Requires-Dist: pymongo (==4.9)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Requires-Dist: python-json-logger (>=3.2.1,<4.0.0)
Requires-Dist: python-multipart (>=0.0.20,<0.0.21)
Requires-Dist: redis (>=5.2.1,<6.0.0)
Requires-Dist: uvicorn (>=0.34.0,<0.35.0)
Project-URL: Homepage, https://github.com/fox-techniques/janux-auth-gateway
Project-URL: Repository, https://github.com/fox-techniques/janux-auth-gateway
Description-Content-Type: text/markdown

# JANUX Authentication Gateway

[![Python](https://img.shields.io/badge/Python-3.10%2B-darkcyan)](https://pypi.org/project/janux-auth-gateway/)
[![PyPI - Version](https://img.shields.io/pypi/v/janux-auth-gateway?label=PyPI%20Version&color=green)](https://pypi.org/project/janux-auth-gateway/)
[![PyPI Downloads](https://static.pepy.tech/badge/janux-auth-gateway)](https://pepy.tech/projects/janux-auth-gateway)
[![License: Apache 2.0](https://img.shields.io/badge/License-Apache2.0-orange.svg)](https://github.com/fox-techniques/janux-auth-gateway/blob/main/LICENSE)
[![GitHub](https://img.shields.io/badge/GitHub-janux--auth--gateway-181717?logo=github)](https://github.com/fox-techniques/janux-auth-gateway)

**JANUX Authentication Gateway** is a high-performance, modular, and extensible authentication microservice built with **FastAPI**. It provides secure user and admin authentication, JWT management, and seamless MongoDB integration via Beanie ODM. Designed for developers and organizations, JANUX ensures scalability, flexibility, and security—making it ideal for **SaaS platforms, APIs, and enterprise applications** that require a robust authentication system.


## 🌟 Key Features

- 🚀 **FastAPI-based** – Asynchronous, high-performance authentication.
- 🔑 **JWT Authentication & Token Management** – Secure access and refresh tokens.
- 🏷️ **Role-Based Access Control (RBAC)** – Admins, users, and fine-grained permissions.
- 🗄️ **MongoDB with Beanie ODM** – Flexible user and admin management.
- 🔐 **Secure Password Hashing** – Uses Argon2 & Bcrypt for industry-leading security.
- 📜 **Cryptographic Key Support** – RSA, Ed25519, and ECDSA for secure key management.
- 🔄 **Redis-Based Token Blacklisting** – Prevents reuse of revoked tokens.
- 🌍 **CORS Middleware** – Configurable allowed origins for API security.
- 🏗️ **Modular & Extensible** – Easily customizable for different authentication workflows.
- 📦 **Deploy Anywhere** – Works in Docker, Kubernetes, and serverless environments.


## 📌 Why Choose **JANUX**?

**JANUX** is developer-friendly, scalable, and production-ready. It eliminates the complexity of authentication by providing a plug-and-play solution for handling users, roles, security, and authentication tokens—so you can focus on building your core application.

## 💡 Use **JANUX** if you need:

- ✅ A ready-to-use authentication system **for APIs and SaaS apps**.
- ✅ A secure and scalable solution with **RBAC & JWT**.
- ✅ Flexibility to extend authentication workflows.
- ✅ Modern authentication standards with **FastAPI, MongoDB, and Redis**.

---

