test: add remote auth jwt smoke

This commit is contained in:
Codex
2026-06-30 02:10:34 +08:00
parent 1b6006f8e6
commit 7eaf26fa40
9 changed files with 446 additions and 7 deletions

View File

@@ -34,6 +34,16 @@ AUTH_CODE_TTL_SECONDS=300
AUTH_SMS_COOLDOWN_SECONDS=60
AUTH_SESSION_TTL_SECONDS=604800
# 远程 Auth/JWKS 验收脚本配置。只在预生产/生产验收命令行临时设置真实 access token
# 不要把真实 token 写入仓库、前端 runtime-config 或长期 .env。
# AUTH_SMOKE_API_BASE_URL=https://api.example.com
# AUTH_SMOKE_TENANT_ID=<tenant-uuid>
# AUTH_SMOKE_STUDENT_ACCESS_TOKEN=<real-supabase-access-token>
# AUTH_SMOKE_TENANT_ADMIN_ACCESS_TOKEN=<tenant-admin-supabase-access-token>
# AUTH_SMOKE_PLATFORM_ADMIN_ACCESS_TOKEN=<platform-admin-supabase-access-token>
# AUTH_SMOKE_WRONG_TENANT_ID=<another-tenant-uuid>
# AUTH_SMOKE_REQUIRE_ADMIN_TOKENS=true
# 安全目标默认关闭迁移期身份头。仅本地兼容旧测试/旧前端时可临时设为 true。
ALLOW_LEGACY_AUTH_HEADERS=false
ALLOW_PLATFORM_ADMIN_KEY=false