From 9bb93079dab87872c7ffa771e66ded445bb3672f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Dr=C3=A1bik?= Date: Thu, 19 Nov 2026 19:58:43 +0100 Subject: [PATCH] Add olauth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds [olauth](https://github.com/kubdrabik/olauth) ([PyPI](https://pypi.org/project/olauth/)), a zero-config, one-line email/password authentication engine for Flask and FastAPI. ### Why it's awesome Setting up session-based email/password authentication in Flask or FastAPI typically requires wiring together multiple libraries, ORM models, session loaders, and templates (~150 lines of boilerplate). `olauth` reduces that setup to a single `olauth.init(app)` call—Ideal for hackathons, rapid MVPs, tutorials, and web apps: - Automatically provisions SQLite (WAL mode), PostgreSQL, or MySQL user and session tables. - Mounts `/signup`, `/login`, `/logout`, `/verify` (opt-in 6-digit email verification), `/forgot-password`, and `/reset-password` with responsive light/dark pages and optional custom Jinja2 template overrides. - Protects routes with `@olauth.login_required` (Flask) or `Depends(olauth.login_required)` (FastAPI) with built-in HTML redirect and JSON API content negotiation. - Production-minded security defaults (`bcrypt` with >72-byte SHA-256 pre-hashing, SHA-256 hashed session tokens in the database, `HttpOnly`/`SameSite=Lax` cookies, CSRF and open-redirect checks, and per-IP sliding-window rate limiting). --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c17b542689..d995894102 100644 --- a/README.md +++ b/README.md @@ -360,6 +360,7 @@ _Libraries for implementing authentication schemes._ - Permissions - [django-guardian](https://github.com/django-guardian/django-guardian) - Implementation of per-object permissions for Django. - [django-rules](https://github.com/dfunckt/django-rules) - A tiny but powerful app for object-level permissions in Django, without a database. + - [olauth](https://github.com/kubdrabik/olauth) - A zero-config, one-line email/password authentication engine for Flask and FastAPI. ### Admin Panels