feat: add authentication routes with session login, WebAuthn, and credential management

Implement Phase 4 auth routes: password login/logout, WebAuthn
registration and authentication, magic link registration, and
credential management pages with HTMX. Includes session middleware,
Jinja2 templates, vendored HTMX, and last-credential guardrails.

120 tests passing.
This commit is contained in:
Johan Lundberg 2026-02-16 11:39:50 +01:00
parent f7ed2cf54d
commit e15dcc4745
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1
23 changed files with 1440 additions and 2 deletions

View file

@ -29,6 +29,9 @@ class Settings(BaseSettings):
# Management RP
manage_client_id: str = "manage-app"
# Session
session_secret: str | None = None # If None, a random secret is generated per process
# Magic links
invite_ttl: int = 86400 # seconds