10 Commits

Author SHA1 Message Date
Zayden-Jung 61e3d71b72 make a media api, encapsulate the original S3 bucket address
there are 3 parts, from back to head, url inside the bucket -> url of backend media api -> backend domain, only the last part is spliced by frontend, the other two parts are spliced with sqlalchemy
2026-05-20 17:31:49 +08:00
Zayden-Jung 9dfe000f2d refactor(auth): remove legacy RESTful user routes and migrate authentication to GraphQL context
- Rename get_current_user to get_current_user_id in auth/deps.py to clarify intent
- Remove legacy /me, /logout routes, and placeholder function from auth/__init__.py
- Remove dependency_overrides from app/main.py
- Update CustomContext to resolve and cache full User objects via db query
2026-05-20 02:52:54 +08:00
Zayden-Jung d54aeaa61a load dotenv everywhere it's needed; postgresql pool pre ping 2026-05-20 02:21:22 +08:00
Zayden-Jung c68d88b8c1 feat(auth): integrate Google OAuth2 and secure cookie management
- Configured CORS middleware to allow cross-origin requests from the frontend.
- Implemented Google OAuth2 login flow and post-auth frontend redirection.
- Managed secure HTTP-only cookies for access, refresh, and state tokens.
2026-05-19 23:55:03 +08:00
Zayden-Jung af5f7b38f8 auth/ is now an independent package 2026-05-19 22:31:30 +08:00
Zayden-Jung 623fac8749 app/auth/ is now an independent package, import nothing from app/ 2026-05-19 22:29:21 +08:00
Zayden-Jung fe1fde778f fix jwt token decoding; correctly import google auth routes; adjust app/auth/ package 2026-05-19 22:21:27 +08:00
Zayden-Jung 86b030930c fix bugs for launch: postgresql url for sqlalchemy; auto loading env 2026-05-19 01:39:57 +08:00
Zayden-Jung 9c55cc675e introduce graphql 2026-05-19 00:24:45 +08:00
Zayden-Jung ceea04299a modify the project, everything go under app folder 2026-05-16 20:13:46 +08:00