Repository navigation
[NEW] OL-Auth - #380
Open
kubdrabik wants to merge 1 commit into
Open
[NEW] OL-Auth#380kubdrabik wants to merge 1 commit into
kubdrabik wants to merge 1 commit into
Conversation
Adds OL-Auth (olauth) (PyPI ), a zero-config, one-line email/password authentication engine for FastAPI (olauth.init(app) and Depends(olauth.login_required)) supporting SQLite/PostgreSQL/MySQL, persistent SHA-256 session cookies, 6-digit email verification, password reset, and swappable custom templates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Project Information
Project Name: OL-Auth (
olauth)Project URL: https://github.com/kubdrabik/olauth (PyPI: https://pypi.org/project/olauth/)
Description:
Zero-config, one-line email/password authentication engine with session cookies, email verification, and password reset.
Criteria
Please answer the following questions about the project you are submitting. This will help us determine whether it should be included in the Awesome FastAPI list.
Note: If your project is less than one year old or has under 100 stars on GitHub, it may NOT meet the criteria for inclusion in the Awesome FastAPI list. We recommend that you promote your project more and then consider submitting it when it has gained more visibility and community support.
Read the Room: 👀 Before submitting, please take time to browse through the existing projects in the list. Get a sense of the quality, maturity, and types of projects we include. If your submission is primarily promotional or doesn't clearly benefit the broader FastAPI community, it's probably not a good fit. We're looking for projects that solve real problems and have demonstrated value to the ecosystem.
👉 Please read and fill out all five questions. We reserve the right to close your pull request without feedback if you skip one or all of them.
Is the project new?
How long has the project been maintained?
~0.5 years (first published to PyPI as
0.1.0a0in June 2026, actively developed through the stable1.0.0and1.1.0releases in November 2026).How many releases has it had if it's a library or package?
4 releases on PyPI (
0.1.0a0,0.1.0a1,1.0.0, and1.1.0): https://pypi.org/project/olauth/#historyAre you the author, or are you submitting the project on behalf of a company?
What makes it awesome?
In the FastAPI ecosystem, packages like
FastAPI-Usersare awesome for large, customizable architectures, but they require wiring up multiple files of Pydantic schemas, async database adapters, user managers, and auth backends. Developers building hackathons, rapid MVPs, tutorials, or server-rendered FastAPI + Jinja2/HTMX apps frequently ask for a way to add simple cookie/session authentication without 150+ lines of boilerplate.olauthsolves that gap in a single line (olauth.init(app)):db=orOLAUTH_DATABASE_URLwith automatic reconnect-on-drop)./signup,/login,/logout,/verify(opt-in 6-digit email verification with console/SMTP/custom callback support),/forgot-password, and/reset-password.Depends(olauth.login_required)andDepends(olauth.current_user)with smart content negotiation (303redirect to/login?next=...for browserAccept: text/htmlrequests,401 UnauthorizedJSON for API clients).template_diror per-page overrides).AI Disclosure
We love transparent contributions. Using AI is perfectly fine, just let us know.
Additional Information
bcryptwith >72-byte SHA-256 pre-hashing and constant-time dummy-hash checks), SHA-256 hashed session tokens at rest, open-redirect andOrigin/Sec-Fetch-SiteCSRF protections, sliding-window rate limiting, and SQLite/PostgreSQL/MySQL dialect handling.bcryptandfastapirequired (pip install "olauth[fastapi]").Thank you for your submission!