系统认证接口

This commit is contained in:
2026-03-03 09:45:46 +08:00
parent 30f3e211af
commit f16feca4f4
4 changed files with 262 additions and 0 deletions
+5
View File
@@ -29,6 +29,11 @@ use Webman\Route;
Route::any('/c', [app\controller\IndexController::class, 'createResource']);
Route::any('/perm', [app\controller\IndexController::class, 'perm']);
// 系统间认证接口
Route::group('/api/system', function () {
Route::any('/auth', [app\common\controller\SystemController::class, 'auth']);
});
// 飞书
Route::any('/feishu/event', [app\common\controller\NotifyController::class, 'feishuEvent']);
// 飞书回调
+12
View File
@@ -0,0 +1,12 @@
<?php
return [
// 共享密钥(双方约定同一个字符串)
'shared_secret' => env('SYSTEM_AUTH_SHARED_SECRET', 'your-shared-secret-string'),
// 签名有效期(秒),默认10分钟
'signature_expire' => 600,
// Token 有效期(秒)
'token_expire' => 86400,
];