accounts/rag-server
Haitao Pan 8edeb75391 feat(auth): implement dual-layer token authentication with config support
- Add auth.enable configuration field (default: true)
- Add TokenService initialization in account service
- Implement token exchange endpoint (/api/auth/token/exchange)
- Implement token refresh endpoint (/api/auth/token/refresh)
- Protect routes with JWT authentication middleware
- Update configuration structures for all services
- Support accessSecret with configurable expiry times
- Update token management script to handle all token types
- Validate auth configuration consistency across services
2025-11-05 20:11:23 +08:00
..
api Move RAG module under rag-server (#526) 2025-10-15 13:27:37 +08:00
cmd Update rag-server default base URL to 8090 (#528) 2025-10-15 15:25:06 +08:00
config feat(auth): implement dual-layer token authentication with config support 2025-11-05 20:11:23 +08:00
internal feat(auth): implement token authentication system across services 2025-11-05 19:28:23 +08:00
migrations Refactor server layout to rag-server (#525) 2025-10-15 13:04:58 +08:00
proxy Refactor server layout to rag-server (#525) 2025-10-15 13:04:58 +08:00
sql refactor(postgresql): replace zhparser+scws with pg_jieba; update Makefile and setup scripts 2025-10-30 15:16:32 +08:00
cors.go Refactor server layout to rag-server (#525) 2025-10-15 13:04:58 +08:00
Makefile update rag-server/Makefile 2025-10-15 14:36:37 +08:00
server.go Refactor server layout to rag-server (#525) 2025-10-15 13:04:58 +08:00