Add gated provider JWT and voice support; harden single-provider delivery - #9
Closed
Hou (SciencePotato) wants to merge 4 commits into
Closed
Add gated provider JWT and voice support; harden single-provider delivery#9Hou (SciencePotato) wants to merge 4 commits into
Hou (SciencePotato) wants to merge 4 commits into
Conversation
added 4 commits
September 10, 2026 14:58
…-provider-token # Conflicts: # dotnet/tests/EngineTests.cs # javascript/src/functions/models.js # javascript/test/dispatch.test.js # python/tests/test_contract.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds gated Soprano provider JWT and structured omnimsg voice support across JavaScript, Python and .NET, with single-provider startup improvements and fail-closed provider response handling. Includes the main changes from merged PR #8; this PR targets
mainand does not undo its parser/decrypted-payload regressions.Authentication and voice
EPP_PROVIDER_JWT_ENABLED=falseperforms no token lookup.apiKeyretains required API ID/key headers and attaches a provider JWT when available.oauth2requires a JWT and never falls back to API keys.voice.text2voicefields; no OTP is extracted from the rendered message. SMS remains top-level text.Single-provider deployments
Bug-bash fix
Previously a 2xx HTML/empty response could be acknowledged by non-Soprano adapters without evidence of submission. Malformed successful JSON now fails with 502 and no nonce. Status-based adapters require a recognized typed status; Sinch requires a nonblank message/call identifier. Non-2xx mappings, redirects, timeout behavior and no-retry behavior are preserved.
Validation
Rollout caveats
voice.text2voiceinside the JWE. Message-only Soprano live voice fails closed; no password inference is performed.tokenEncryptionKeyIdis distinct from payload JWE; no inbound token-validation fallback or authentication bypass is introduced.Supersedes the implementation intent of closed, unmerged PR #4 without merging its unrelated/older history. Please squash-and-merge after review and passing CI; no automatic merge is requested.