This PR adds authentication token support to CLIENT_SETUP and extends moq-pub with CAT token generation#150
Open
mondain wants to merge 3 commits intocloudflare:mainfrom
Open
This PR adds authentication token support to CLIENT_SETUP and extends moq-pub with CAT token generation#150mondain wants to merge 3 commits intocloudflare:mainfrom
CLIENT_SETUP and extends moq-pub with CAT token generation#150mondain wants to merge 3 commits intocloudflare:mainfrom
Conversation
Add Token wire structure encoding (alias type + token type + value) to moq-transport for proper CLIENT_SETUP AUTHORIZATION_TOKEN formatting per draft-ietf-moq-transport Section 9.2.1.1. Add unsigned CWT (CBOR Web Token) builder to moq-pub for CAT tokens (Type 0x10) with RFC 8392 claims: sub, exp, iat, and moqt scope. New --cat-subject CLI flag (mutually exclusive with --auth-token) allows sending a JWT string as the CWT subject claim, enabling plugin-level JWT validation through the relay's CatTokenParser. Existing --auth-token path now wraps bytes in proper Token structure with OUT_OF_BAND type (0x00) instead of sending raw bytes. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Changes
CLIENT_SETUPmoq-transportfor proper alias/type/value formattingmoq-pub--cat-subjectCLI flag for building unsigned CWT/CAT tokens--auth-tokenpath to wrap token bytes in the proper out-of-band token structureCLAUDE.mdfile from the branchNotes