| Name | Modified | Size | Downloads / 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 sharedexamples/apps/_templates/template set) alongside the existing JSON API, plus aPOST /logoutroute. Web login sets anHttpOnlyaccess_tokencookie;/dashboardverifies 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 theAuthorization: Bearerheader or theaccess_tokencookie: 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_rolewere declaredasync def, which madeDepends(require_permission("..."))receive a coroutine instead of a dependency. They are now regular factory functions, so the documentedDepends(...)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 as400with the complexity message instead of an unhandled exception.