63 Commits

Author SHA1 Message Date
c42f39bc8b fix: change expires_at to expired_date in get_apikey_user and add_apikey, fix getID missing parentheses 2026-05-12 16:10:36 +08:00
e089df99f7 fix: 修改认证自动分配角色为downapp/logined
- 机构类型从'*'改为'downapp'
- 角色名从'downappuser'改为'logined'
- 角色id改为独立生成不再使用dappid
2026-05-11 15:41:23 +08:00
e142f4b84e feat: 添加x-api-key认证模式和downappuser角色自动分配
- 新增x_api_key_auth函数支持Anthropic标准x-api-key header认证
- get_apikey_user查询增加dappid字段
- 认证成功后自动创建并分配downappuser角色(id=dappid)
- rbac/check_perm中增加x-api-key header检查,优先于Authorization
2026-05-11 15:36:41 +08:00
27794d3d25 feat: 新增create_user_apikey函数
- 为已有rbac用户创建dapi apikey
- 支持幂等操作(已存在则返回现有apikey)
- 通过load_dapi注册到ServerEnv供外部调用
2026-05-11 15:11:09 +08:00
89a5cf65a3 bugfix 2026-04-26 15:06:42 +08:00
6acdafbe16 bugfix 2026-04-16 16:00:01 +08:00
6d1abc41cb bugfix 2026-04-16 15:57:48 +08:00
d5072cb2ea bugfix 2026-04-16 15:49:22 +08:00
d64fcd1d73 bugfix 2026-04-16 11:13:26 +08:00
1e0f3a408d bugfix 2026-04-02 14:24:48 +08:00
a05353a0e2 bugfix 2026-04-02 14:20:19 +08:00
ba4eaa4653 bugfix 2026-04-02 14:06:59 +08:00
1746aa0331 bugfix 2026-03-30 21:01:50 +08:00
ae4ae625d9 bugfix 2026-03-30 21:00:41 +08:00
2e66b08b4c bugfix 2026-03-30 20:47:59 +08:00
44fbcd0102 bugfix 2026-03-30 20:43:08 +08:00
d57731c6dd bugfix 2025-09-02 15:19:36 +08:00
89a4bdd42f bugfix 2025-09-02 13:52:13 +08:00
5a6dc559c0 bugfix 2025-09-02 12:56:11 +08:00
a09e663dca bugfix 2025-09-01 11:56:55 +08:00
4b5e27e3e9 bugfix 2025-08-28 18:27:08 +08:00
3693281e77 bugfix 2025-08-28 10:05:31 +08:00
45ee8653c2 bugfix 2025-08-28 09:58:44 +08:00
7e218a68a6 bugfix 2025-08-28 09:41:11 +08:00
19d19dd08d bugfix 2025-08-28 09:37:45 +08:00
990abfb344 bugfix 2025-08-27 19:07:14 +08:00
c36b7f9400 bugfix 2025-08-27 18:43:00 +08:00
cdff11dd2b bugfix 2025-08-27 18:36:23 +08:00
07c76e402c bugfix 2025-08-15 16:04:08 +08:00
914db19df5 bugfix 2025-08-15 15:10:30 +08:00
dba0ff2d4b bugfix 2025-08-15 11:30:47 +08:00
59d19f6bc3 bugfix 2025-08-15 11:16:45 +08:00
4b3da10fc8 bugfix 2025-08-14 18:11:03 +08:00
47b79b94b8 bugfix 2025-08-14 17:53:19 +08:00
665e7afd68 bugfix 2025-08-14 17:50:34 +08:00
9e6b18ca8a bugfix 2025-08-14 16:07:31 +08:00
367ad5d79d bugfix 2025-08-06 11:31:23 +08:00
40ac3bbb40 bugfix 2025-08-05 17:21:04 +08:00
cc817377c9 Merge branch 'main' of git.opencomputing.cn:yumoqing/dapi 2025-08-05 16:15:02 +08:00
1595fc968f bugfix 2025-08-05 16:14:44 +08:00
d2d62acc26 bugfix 2025-07-31 18:38:38 +08:00
045eea4cd6 bugfix 2025-07-31 17:46:48 +08:00
27c1c832b2 bugfix 2025-07-31 17:37:21 +08:00
5e94ed35c2 bugfix 2025-07-31 17:10:00 +08:00
9c15c81d61 bugfix 2025-07-31 16:56:58 +08:00
a9b4ec558e bugfix 2025-07-31 16:54:42 +08:00
5aa3a06966 bugfix 2025-07-31 16:01:10 +08:00
3d0253d297 bugfix 2025-07-31 15:51:00 +08:00
ccd01a82ab bugfix 2025-07-31 15:29:29 +08:00
b584cf07c3 bugfix 2025-07-31 15:06:37 +08:00