mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
Add olauth
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).
This commit is contained in:
parent
4c3cb15dc6
commit
9bb93079da
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue