Expand description
Browser sessions minted by a password sign-in on the built-in login page.
A row records when the browser signed in; expiry is computed at each read
from the live authentication.oidc.browser_session_ttl, so lowering the
setting shortens existing sessions at once. The cookie names the user and a
random secret, and only the secretβs digest is stored.
Re-exportsΒ§
use std::time::Duration;πuse futures::TryFutureExt;πuse ruma::UserId;πuse tuwunel_core::Result;πuse tuwunel_core::debug;πuse tuwunel_core::debug;πuse tuwunel_core::implement;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::hash::sha256::hash as sha256;πuse tuwunel_core::utils::millis_since_unix_epoch;πuse tuwunel_core::utils::random_string;πuse tuwunel_core::utils::result::NotFound;πuse tuwunel_core::utils::stream::TryReadyExt;πuse tuwunel_core::utils::time::now;πuse tuwunel_core::warn;πuse tuwunel_database::Deserialized;πuse tuwunel_database::Interfix;π
StructsΒ§
- Browser
Session - A browser session started by a password sign-in.
ConstantsΒ§
- SECRET_
LENGTH π - TTL_MAX π
- Upper bound on
browser_session_ttl, in seconds.
FunctionsΒ§
- parse_
token π