feat: modularize external providers

This commit is contained in:
2026-07-27 17:47:21 +08:00
parent db4c7b4496
commit 70b99e6063
47 changed files with 1219 additions and 667 deletions

View File

@@ -453,16 +453,18 @@ public sealed class CreateTenantDomainDto
}
}
public sealed class UpsertTenantAuthProviderDto
public sealed class UpsertTenantIdentityProviderDto
{
public required string Provider { get; set; }
public string? Status { get; set; }
public string? DisplayName { get; set; }
public string? SecretRef { get; set; }
public int? Priority { get; set; }
public JsonElement ConfigPublic { get; set; } = JsonDefaults.Object();
public UpsertTenantAuthProviderCommand ToCommand()
public UpsertTenantIdentityProviderCommand ToCommand()
{
return new UpsertTenantAuthProviderCommand(Provider, Status, DisplayName, ConfigPublic);
return new UpsertTenantIdentityProviderCommand(Provider, Status, DisplayName, SecretRef, Priority, ConfigPublic);
}
}