Expand description
Registration token validation and lifecycle management.
The service combines static configuration tokens with database-backed tokens whose stored use count or expiration time can invalidate them. Validation, consumption, listing, update, and revocation share one interface.
Re-exportsยง
use std::collections::HashSet;๐use std::fmt::Display;๐use std::sync::Arc;๐use data::Data;๐pub use data::DatabaseTokenInfo;pub use data::TokenExpires;use futures::Stream;๐use futures::StreamExt;๐use futures::pin_mut;๐use tuwunel_core::Err;๐use tuwunel_core::Result;๐use tuwunel_core::error;๐use tuwunel_core::error;๐use tuwunel_core::utils::IterStream;๐use tuwunel_core::utils::random_string;๐
Modulesยง
- data ๐
- Persistent registration token metadata.
Structsยง
- Service
- Manages configured and database-backed registration tokens.
- Valid
Token - Registration token returned by the valid-token stream.
Enumsยง
- Token
Info - Describes the origin and stored metadata of a registration token.
Constantsยง
- RANDOM_
TOKEN_ ๐LENGTH