fix: remove vendor-to-tenant-org addition on tenant creation
Some checks failed
CI / build (push) Failing after 50s
CI / docker (push) Has been skipped

Vendor has platform:admin scope globally and manages tenants through the
SaaS console — no need to be a member of each tenant's Logto org.
Removes the step that failed with Logto's varchar(21) user ID limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-12 14:30:56 +02:00
parent 85e0d6156a
commit d3a9be8f2e

View File

@@ -90,17 +90,6 @@ public class VendorTenantService {
}
}
// Add the current vendor user to the new org for support access
try {
String vendorUserId = actorId.toString();
logtoClient.addUserToOrganization(tenant.getLogtoOrgId(), vendorUserId);
if (ownerRoleId != null) {
logtoClient.assignOrganizationRole(tenant.getLogtoOrgId(), vendorUserId, ownerRoleId);
}
} catch (Exception e) {
log.warn("Failed to add vendor to org for tenant {}: {}", tenant.getSlug(), e.getMessage());
}
// Register OIDC redirect URIs for the tenant's server in the Traditional Web App
String tradAppId = logtoConfig.getTradAppId();
if (tradAppId != null) {