Skip to main content

Module registration_tokens

Module registration_tokens 

Source
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.
ValidToken
Registration token returned by the valid-token stream.

Enumsยง

TokenInfo
Describes the origin and stored metadata of a registration token.

Constantsยง

RANDOM_TOKEN_LENGTH ๐Ÿ”’