mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-20 20:07:59 +00:00
Centralize all Forgejo HTTP in app/services/forgejo.py (get/post + authorize_url/exchange_code/fetch_user, typed ForgejoError, defensive base-URL join). Centralize credential encryption in app/auth/tokens.py (decrypt_pat/set_pat, set_client_secret/decrypt_client_secret) so the get_fernet()+crypto+column pattern no longer leaks into routers. auth/settings/setup now delegate to these modules; the duplicated client-secret encrypt block and per-call httpx clients are gone. |
||
|---|---|---|
| .. | ||
| auth | ||
| models | ||
| routers | ||
| services | ||
| static | ||
| templates | ||
| __init__.py | ||
| config.py | ||
| database.py | ||
| deps.py | ||
| main.py | ||
| middleware.py | ||
| templating.py | ||