feat: integrate ZYT admin with IAM Hub

This commit is contained in:
2026-09-08 13:26:41 +08:00
parent cf3fbdc5ef
commit a5f4c4472d
856 changed files with 3585 additions and 2371 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT"
php server/tests/IamHubIntegrationTest.php >/dev/null
echo ZYT_IAM_UNIT_CONTRACT=PASS
php server/tests/AdminMultiRoleRegressionTest.php >/dev/null
php server/tests/WecomPromotionPoolOperatorContractTest.php >/dev/null
echo ZYT_EXISTING_AUTH_REGRESSION=PASS
find server/app/common/service/iam server/app/common/model/iam -type f -name '*.php' -print0 \
| xargs -0 -n1 php -l >/dev/null
php -l server/app/adminapi/controller/IamController.php >/dev/null
php -l server/app/adminapi/controller/LoginController.php >/dev/null
php -l server/app/adminapi/validate/LoginValidate.php >/dev/null
echo ZYT_IAM_PHP_LINT=PASS
grep -Rqs '公司员工统一登录' server/public/admin/assets
grep -Rqs '/login/iamExchange' server/public/admin/assets
grep -Rqs 'iam_code' server/public/admin/assets
echo ZYT_IAM_FRONTEND_DIST=PASS
grep -q 'uk_admin_iam_subject' server/sql/1.9.20260908/add_iam_hub_admin_identity.sql
grep -q 'uk_iam_revocation_event_id' server/sql/1.9.20260908/add_iam_hub_admin_identity.sql
echo ZYT_IAM_MIGRATION_CONTRACT=PASS
echo ZYT_IAM_ADAPTER_VERIFIED