1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! The authorization contract for Media over QUIC.
//!
//! A relay asks one question per session, "may this connect?", and this crate holds
//! every piece of the answer:
//!
//! - [`Request`] and [`Grant`]: the JSON a relay POSTs to an auth server on
//! [`Event::Connect`], [`Event::Revalidate`], and [`Event::End`], and what comes back.
//! - [`lease::Producer`] / [`lease::Consumer`]: the handle a session holds for its
//! grant, so whoever runs the accept loop decides how, in process or over HTTP.
//! - [`Client`]: the HTTP implementation that drives a lease against `--auth-url`.
//! - [`serve::Server`]: the reference server behind `moq auth serve`, holding the
//! policy a relay used to: keys, public rules, an mTLS grant, tiers, and limits.
//! - [`Claims`], [`Key`], and [`KeySet`]: the JWT a client presents in its query, with
//! the keys that sign and verify it. `moq auth generate|sign|verify` is the CLI.
//!
//! Grants and claims name paths with [`Pattern`]s from `moq-pattern`, re-exported here:
//! `foo` is one broadcast, `foo/**` is a subtree, `**` is everything.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use ;
pub use *;
pub use *;