Download Latest Version v0.2.5 source code.zip (1.3 MB)
Email in envelope

Get an email when there's a new version of authority

Home / v0.2.5
Name Modified Size InfoDownloads / Week
Parent folder
authority_auth-0.2.5-py3-none-any.whl 2026-08-16 81.4 kB
authority_auth-0.2.5.tar.gz 2026-08-16 1.2 MB
README.md 2026-08-16 1.5 kB
v0.2.5 source code.tar.gz 2026-08-16 1.2 MB
v0.2.5 source code.zip 2026-08-16 1.3 MB
Totals: 5 Items   3.9 MB 3

Added

  • Example apps (FastAPI, Flask, Django, Starlette) are now real web apps: server-rendered HTML pages at /, /login, /register, and /dashboard (rendered from the shared examples/apps/_templates/ template set) alongside the existing JSON API, plus a POST /logout route. Web login sets an HttpOnly access_token cookie; /dashboard verifies it server-side.
  • Django example app now renders its pages through Django's Jinja2 template backend and merges the GET page / POST JSON handlers per route.
  • Protected routes (/me, /admin) in the example apps now accept a token via the Authorization: Bearer header or the access_token cookie: a small per-framework middleware promotes the cookie to the header when no header is sent, so the header-based decorators/dependencies work in the browser.

Fixed

  • authority.fastapi.require_permission / require_role were declared async def, which made Depends(require_permission("...")) receive a coroutine instead of a dependency. They are now regular factory functions, so the documented Depends(...) pattern works directly.
  • Example apps (FastAPI, Flask, Django, Starlette) now serve app info, demo credentials, and their endpoint list at / instead of returning 404.
  • Example apps no longer return HTTP 500 when a weak password is submitted to POST /register: password validation failures are caught and reported as 400 with the complexity message instead of an unhandled exception.
Source: README.md, updated 2026-08-16