118 Commits

Author SHA1 Message Date
Chris
f5848a360f feat: add organization and member management APIs for admin and internal use 2026-03-30 01:23:02 +08:00
Chris
c6cb9d6818 fix: enrich me profile via userinfo and add org-member management plan 2026-03-30 01:14:02 +08:00
Chris
1ec132184f fix: use stable callback redirect_uri for oidc login 2026-03-30 01:08:08 +08:00
Chris
42f04ef961 fix: switch frontend login to authentik auth-code flow 2026-03-30 01:04:28 +08:00
Chris
096136e9d5 fix: allow login by email via authentik username resolution 2026-03-30 00:54:15 +08:00
Chris
ad6d16c97e feat: add username-password login flow via authentik token endpoint 2026-03-30 00:52:09 +08:00
Chris
7ddf66dfdd fix: enable CORS for configured frontend origins 2026-03-30 00:46:02 +08:00
Chris
5170787d43 docs: add database schema snapshot and validation index links 2026-03-30 00:42:48 +08:00
Chris
ddaaadfe5b feat: configure authentik member oidc and local dev token compatibility 2026-03-30 00:34:59 +08:00
Chris
0e9ce1cd32 chore: add local development env files and startup script 2026-03-29 23:34:34 +08:00
Chris
db0b4545cb docs: add frontend and backend task plans 2026-03-29 23:29:49 +08:00
Chris
d26762be5d Init frontend: Vue 3 + Vite member.ose.tw
建立完整前端架構:
- 配置 Vite + Vue 3 + Element Plus + Tailwind
- 實作 API 模層(axios interceptor + Bearer/Key 認證)
- 狀態管理:auth store(用戶登入狀態)、permission store(權限快照 & Admin 認證)
- 路由守衛:/me* 需 Bearer token,/admin* 不強制
- 完成三個頁面:登入、我的資料、我的權限快照、權限 grant/revoke 管理
- 全面錯誤處理與 UI 提示(401/403/404/503 對應訊息)

Checklist 完成度:
✓ A.初始化(http.js、auth/permission store、.env)
✓ B.API 對接(/me、/me/permissions/snapshot、grant、revoke)
✓ C.頁面三組件
✓ D.行為驗證(Token 過期、自動刷新、錯誤提示)
✓ E.交付條件(獨立刷新、錯誤 UI、loading/success 狀態)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-29 23:26:58 +08:00
Chris
d1a5ad2819 docs: switch frontend handoff docs to pure javascript 2026-03-29 23:18:08 +08:00
Chris
a880c99857 docs: add frontend handoff architecture and index 2026-03-29 23:15:15 +08:00
Chris
dbd2ccf43f feat: add authentik admin user sync endpoint 2026-03-29 23:08:52 +08:00
Chris
5790878c87 feat: add authentik jwt verification and me endpoints 2026-03-29 23:06:19 +08:00
Chris
970693a6d5 chore: track .env in repository 2026-03-29 23:02:24 +08:00
Chris
e9717d5214 feat: bootstrap backend MVP and architecture docs 2026-03-29 23:01:34 +08:00