Files
LangBot/pkg
a076ce5756 feat: Add API key authentication system for external service access (#1757)
* Initial plan

* feat: Add API key authentication system backend

Co-authored-by: RockChinQ <[email protected]>

* feat: Add API key management UI in frontend sidebar

Co-authored-by: RockChinQ <[email protected]>

* fix: Correct import paths in API controller groups

Co-authored-by: RockChinQ <[email protected]>

* fix: Address code review feedback - add i18n and validation

Co-authored-by: RockChinQ <[email protected]>

* refactor: Enable API key auth on existing endpoints instead of creating separate service API

- Added USER_TOKEN_OR_API_KEY auth type that accepts both authentication methods
- Removed separate /api/service/v1/models endpoints
- Updated existing endpoints (models, bots, pipelines) to accept API keys
- External services can now use API keys to access all existing LangBot APIs
- Updated documentation to reflect unified API approach

Co-authored-by: RockChinQ <[email protected]>

* docs: Add OpenAPI specification for API key authenticated endpoints

Co-authored-by: RockChinQ <[email protected]>

* chore: rename openapi spec

* perf: ui and i18n

* fix: ui bug

* chore: tidy docs

* chore: fix linter errors

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RockChinQ <[email protected]>
Co-authored-by: Junyan Qin <[email protected]>
2025-11-07 14:08:11 +08:00
..
2025-07-10 11:01:16 +08:00
2025-05-14 16:44:48 +08:00
2025-11-04 18:47:38 +08:00
2025-09-12 12:41:16 +08:00
2022-12-07 22:27:05 +08:00