fix(transport): carry Transport + OAuth2 authority/scope on SmtpConfigDto (OAuth2 fields were silently dropped)

This commit is contained in:
Joseph Doherty
2026-08-10 06:43:43 -04:00
parent 2f217f5742
commit 8df15b34b8
6 changed files with 159 additions and 2 deletions
@@ -3437,6 +3437,11 @@ public sealed class BundleImporter : IBundleImporter
target.MaxConcurrentConnections = dto.MaxConcurrentConnections;
target.MaxRetries = dto.MaxRetries;
target.RetryDelay = dto.RetryDelay;
// Non-sensitive delivery metadata; null on a bundle written before these
// were carried, which is the entity's "provider defaults / Smtp" state.
target.OAuth2Authority = dto.OAuth2Authority;
target.OAuth2Scope = dto.OAuth2Scope;
target.Transport = dto.Transport;
target.Credentials = dto.Secrets?.Values.TryGetValue("Credentials", out var cred) == true ? cred : null;
}