fix: remove vendor-to-tenant-org addition on tenant creation
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user