mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-21 04:17:59 +00:00
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>
19 lines
436 B
TOML
19 lines
436 B
TOML
[project]
|
|
name = "myst-web"
|
|
version = "0.1.0"
|
|
description = "Myst: FastAPI + HTMX web interface for managing Forgejo repositories"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"asyncpg>=0.31.0",
|
|
"cryptography>=46.0.0",
|
|
"fastapi>=0.136.0",
|
|
"httpx>=0.28.0",
|
|
"pydantic-settings>=2.13.1",
|
|
"pydantic[email]>=2.13.2",
|
|
"sqlalchemy[asyncio]>=2.0.49",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"uvicorn[standard]>=0.44.0",
|
|
]
|