Conversation
MediaSession can now accept an existing MOQTSession to reuse a connection. Session uses longest-prefix matching for namespace subscriptions and sends PUBLISH_DONE on unpublish. Video sends are serialized to prevent GOP corruption.
Handle trackAlias reuse by removing old subscription instead of erroring. Clean up existing decode pipeline when same track re-publishes.
…e C4M tokens in inspector
…oding, integrate per-request auth
…on, duplicate keys, input validation
# Conflicts: # .github/workflows/deploy-branch.yml # packages/session/src/index.ts # packages/session/src/object-router.ts # packages/session/src/session.ts # packages/session/src/types.ts # pnpm-lock.yaml
…en decoding, scopes, and validation
…ntation test vectors
…just CLIENT_SETUP
…r-request SUBSCRIBE auth
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
packages/cat/(@web-moq/cat) — standalone CAT (Common Access Token) library implementing CBOR (RFC 8949), COSE_Sign1 (RFC 9052), COSE_Mac0 (RFC 9052), and CWT (RFC 8392)CatTokenBuilderfluent API for token creation,CatTokenDecoderfor decode + full validation (signature, expiration, nbf, audience, algorithm enforcement)message-codec.tswhereAUTHORIZATION_TOKENparameter was decoded as UTF-8MessageCodec.encodeAuthorizationToken()/decodeAuthorizationToken()with alias type support (0/1/2/3)AUTHORIZATION_TOKENsupport in SUBSCRIBE and PUBLISH messages viaauthTokenoptionTest plan
packages/cat: 167 passed, 1 skipped (catapult signing format divergence — Signing input should use COSE Sig_structure / MAC_structure, not raw header||payload catapult#16)packages/core: 343 passedpackages/secure-objects: 78 passedpackages/session: compiles cleanapps/auth-demo: vite build succeeds