Sign in
There are a total of 1 posts.
2026-02-10
在 Celery Worker 無法取得 request.user 與 Session 的情況下,傳統的 OAuth2、JWT、Session 認證失效。我改以 API Key 並透過 FK 綁定使用者,解決認證與識別問題,同時簡化鍵管理、輪換與計費授權,提升後端間通訊的可操作性與安全性。