feat: add username-password login flow via authentik token endpoint

This commit is contained in:
Chris
2026-03-30 00:52:09 +08:00
parent 7ddf66dfdd
commit ad6d16c97e
12 changed files with 139 additions and 17 deletions

View File

@@ -44,7 +44,8 @@
## 5. Token 與 Header 策略
- 使用者路由(`/me*`
- header: `Authorization: Bearer <authentik_access_token>`
- 登入用 `POST /auth/login`(帳號密碼)取得 access token
- header: `Authorization: Bearer <access_token>`
- 管理路由(`/admin*`
- headers:
- `X-Client-Key`