Skip to main content

Crate moq_token

Crate moq_token 

Source
Expand description

JWT token generation and validation for MoQ authentication.

Create and verify JWT tokens used for authorizing publish/subscribe operations in MoQ. Tokens specify which broadcast paths a client can publish to and consume from.

See Claims for the JWT claims structure and Key for key management.

Structs§

Claims
Key
JWK, almost to spec (https://datatracker.ietf.org/doc/html/rfc7517) but not quite the same because it’s annoying to implement.
KeyId
A validated key identifier (kid) that is safe for use in file paths and URLs.
KeySet
JWK Set to spec https://datatracker.ietf.org/doc/html/rfc7517#section-5
RsaAdditionalPrime
Additional prime information for multi-prime RSA keys.
RsaPrivateKey
RSA private key parameters.
RsaPublicKey
RSA public key parameters.

Enums§

Algorithm
A subset of jsonwebtoken algorithms.
EllipticCurve
Supported elliptic curves for EC and OKP key types.
Error
Top-level error type for moq-token.
KeyError
Errors related to key configuration and cryptographic operations.
KeyIdError
KeyOperation
Cryptographic operations that a key can perform.
KeyType
https://datatracker.ietf.org/doc/html/rfc7518#section-6

Type Aliases§

Result