fix(iam): expose scoped account metadata and avoid duplicate notices

This commit is contained in:
2026-10-30 11:50:55 +08:00
parent 27cab30c48
commit a32e167f8b
4 changed files with 52 additions and 7 deletions
+1
View File
@@ -28,4 +28,5 @@ $login = file_get_contents($root . '/app/adminapi/service/iam/IamLoginService.ph
requireContract(strpos($login, '->assertLinked(') < strpos($login, '$result = (array) (new LoginLogic())->login'), 'binding sync precedes new token issuance');
$provisioner = file_get_contents($root . '/app/adminapi/service/iam/IamAccountProvisioner.php');
requireContract(strpos($provisioner, 'return IamLoginService::boundAdminId') < strpos($provisioner, 'IAM_BINDING_REVOKED'), 'explicit central binding precedes local auto-create tombstone');
requireContract(str_contains($controller, "\$this->fail(\$code, ['error' => ['code' => \$code]], 0, 0)"), 'IAM structured errors suppress shared toast without changing other interfaces');
echo "PASS IamV2RouteContractTest: fixed POST callbacks, auto-route method gate, origin/service authentication, live proof authorization, target scope, dedicated TLS client, default-off, personal OIDC proof\n";