fix(transport): carry Transport + OAuth2 authority/scope on SmtpConfigDto (OAuth2 fields were silently dropped)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user