feat(notifications): configurable OAuth2 authority + scope per SMTP configuration (defaults preserve M365) — entity + EF + migration + token service

Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
This commit is contained in:
Joseph Doherty
2026-07-10 04:07:13 -04:00
parent 178ae35308
commit 9e60347bde
8 changed files with 2201 additions and 5 deletions
@@ -126,5 +126,14 @@ public class SmtpConfigurationConfiguration : IEntityTypeConfiguration<SmtpConfi
builder.Property(s => s.FromAddress)
.IsRequired()
.HasMaxLength(500);
// Optional OAuth2 token-endpoint overrides — null preserves the M365 defaults.
builder.Property(s => s.OAuth2Authority)
.IsRequired(false)
.HasMaxLength(500);
builder.Property(s => s.OAuth2Scope)
.IsRequired(false)
.HasMaxLength(500);
}
}