EnvelopeFlow.Providers.Sms.AzureCommunicationServices
0.1.0-alpha.3.1
dotnet add package EnvelopeFlow.Providers.Sms.AzureCommunicationServices --version 0.1.0-alpha.3.1
NuGet\Install-Package EnvelopeFlow.Providers.Sms.AzureCommunicationServices -Version 0.1.0-alpha.3.1
<PackageReference Include="EnvelopeFlow.Providers.Sms.AzureCommunicationServices" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Providers.Sms.AzureCommunicationServices" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Providers.Sms.AzureCommunicationServices" />
paket add EnvelopeFlow.Providers.Sms.AzureCommunicationServices --version 0.1.0-alpha.3.1
#r "nuget: EnvelopeFlow.Providers.Sms.AzureCommunicationServices, 0.1.0-alpha.3.1"
#:package EnvelopeFlow.Providers.Sms.AzureCommunicationServices@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Providers.Sms.AzureCommunicationServices&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Providers.Sms.AzureCommunicationServices&version=0.1.0-alpha.3.1&prerelease
Azure Communication Services SMS
Valid Retry-After delta/date floors up to seven days remain intact, including floors beyond one day. Larger, malformed, repeated or unrepresentable floors require review and never become an earlier automatic retry.
Optional ISmsTransport for stable API POST {resource}/sms?api-version=2026-01-23, with access-key HMAC-SHA256 authentication. Options hold one trusted https://<resource>.communication.azure.com/ endpoint, delivery-report selection and optional bounded tag. The scoped asynchronous credential resolver supplies the exact full scope, base64 access key and allowed E.164 senders; it must not select credentials from message fields. Twilio MessagingServiceId, media and bulk recipients are explicitly rejected. One E.164 recipient and up to 2,048 text code units are supported.
The optional tag must contain well-formed Unicode, at most 256 UTF-16 code units and no control characters. Invalid configuration is refused before client/credential preparation; JSON cannot silently replace malformed tag text. Null, empty, literal replacement characters and valid supplementary characters retain their existing behavior. The exact accepted tag is included in the signed request for the provider's delivery-report metadata.
The request signs the exact verb/path/query/date/host/body hash with x-ms-date and x-ms-content-sha256; the owned client enforces exact HTTPS host/public IP connections and disables redirects/proxy/retries. A successful response must match its one recipient, per-recipient successful status and nonempty provider ID. HTTP success alone is insufficient. Ambiguous acceptance, oversized/malformed results and post-send timeout/cancellation return Unknown. Definite refusals are Rejected; 429 carries Retry-After. This adapter deliberately does not claim server repeatability without a stable persisted first-send context. Cache scoped transports and dispose them at shutdown.
The HTTP 202 response can contain a per-recipient refusal. Only an exactly correlated unsuccessful HTTP 4xx result, excluding timeout 408, proves a definite refusal. An unsuccessful result carrying success/informational/redirect/invalid status, a timeout, or a server failure remains Unknown. An exactly correlated unsuccessful 429 uses the same retry advice and complete Retry-After floor as an HTTP-level 429; unusable floors require review. A refusal that also carries a message ID remains Unknown because the documented ID signals processed work. Official per-recipient response contract checked 2026-10-27.
AzureSmsReceiptTranslator supports one Event Grid Microsoft.Communication.SMSDeliveryReportReceived event, matching the exact trusted resource topic and recipient. Event Grid does not provide a raw-body HMAC in this contract. The application MUST validate its configured Microsoft Entra sender token/audience/issuer/roles (or another independently authenticated ingress) before setting senderAuthenticated=true. Neither a header, topic string nor subscription validation challenge is proof of sender identity. Application endpoints own Event Grid subscription validation. Persist source IDs and exact immutable message/recipient correlation before acknowledgment. Delivery reports never grant consent or trigger automatic sends.
AzureSmsMessageTranslator applies that independently authenticated-ingress requirement to exactly one Microsoft.Communication.SMSReceived event, checking the configured resource topic and receiving E.164 number. Azure schema phone numbers with or without a leading + normalize to E.164. The bounded normalized message preserves source IDs, sender, text and receivedTimestamp; both received and emitted times must meet the configured observation age (default seven days, at most thirty). No SMS parent-message context is invented. Applications map the sender to their own recipient and durably accept Event.Key before acknowledging. Batched, stale, malformed, oversized and mismatched-resource/number callbacks fail closed. Official SMSReceived schema checked 2026-10-23.
API references verified 2026-10-17: current SMS REST API, HMAC authentication, delivery-report schema, authenticated Event Grid delivery. No Azure SDK/identity framework, HTTP endpoint or live-send gate is imposed. Existing optional SmsDeliveryTransport provides durable submission integration and Retry-After propagation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Inbound.Abstractions (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Sms.Abstractions (>= 0.1.0-alpha.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.3.1 | 45 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 66 | 11/9/2026 |