myst/web/app
ZTatman 5fec547983 feat(web): Forgejo OAuth, Myst sessions, and auth schema
Implement Myst-owned sessions after Forgejo OAuth per auth design: User and
LinkedIdentity with encrypted OAuth tokens, Session in its own module,
Grant token_hash plus user_id and expires_at. Add auth/identity and
auth/session helpers, Forgejo login/callback/logout routes, and a minimal
/dashboard that requires get_current_session.

Move get_db to app/deps.py so routers and auth avoid importing app.main.
Add httpx and cryptography; extend Settings with OAuth client fields,
optional MYST_PUBLIC_BASE_URL for redirect_uri, and OAUTH_TOKEN_ENCRYPTION_KEY
(Fernet) required when persisting OAuth tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 15:12:17 -04:00
..
auth feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00
models feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00
routers feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00
__init__.py Add FastAPI web service with async SQLAlchemy and Docker (#10) 2026-04-24 16:03:54 -04:00
config.py feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00
database.py Add FastAPI web service with async SQLAlchemy and Docker (#10) 2026-04-24 16:03:54 -04:00
deps.py feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00
main.py feat(web): Forgejo OAuth, Myst sessions, and auth schema 2026-05-12 15:12:17 -04:00