Expand description
Account states a foreign database keeps outside the password column.
Some databases mark deactivation in a column of its own while leaving the hash in place, and spell an account an identity provider authenticates as an empty hash. This server reads both states from the password alone, so until they are adopted the first reads as active and the second as deactivated.
Re-exportsยง
use std::fmt;๐use std::str::from_utf8;๐use std::sync::Arc;๐use futures::FutureExt;๐use futures::Stream;๐use futures::StreamExt;๐use futures::TryFutureExt;๐use futures::TryStreamExt;๐use futures::future::BoxFuture;๐use futures::stream::once;๐use ruma::OwnedUserId;๐use ruma::ServerName;๐use ruma::UserId;๐use tuwunel_core::Result;๐use tuwunel_core::result::NotFound;๐use tuwunel_core::smallstr::SmallString;๐use tuwunel_core::utils::BoolExt;๐use tuwunel_core::utils::IterStream;๐use tuwunel_core::utils::TryReadyExt;๐use tuwunel_core::utils::option::OptionExt;๐use tuwunel_core::utils::stream::TryBroadbandExt;๐use tuwunel_database::KeyBuf;๐use tuwunel_database::Map;๐use super::Check;๐use super::Report;๐use super::ScanExt;๐use super::Summary;๐use super::leading_record;๐use super::tally;๐use crate::Services;๐use crate::migrations::ADOPT_ACCOUNT_STATUS;๐use crate::migrations::local_user_id;๐use crate::migrations::marker_present;๐
Structsยง
- Columns
- The foreign account columns the database holds, opened.
- Named ๐
- The account a foreign row names, read as a release build decodes the row.
Enumsยง
- Finding
- An account whose password here does not say what a foreign column records, or a foreign row this check cannot read.
- Subject ๐
- What a row of the foreign subject column names.
Constantsยง
- DEACTIVATED_
COLUMN ๐ - SUBJECTS_
COLUMN ๐
Staticsยง
- CHECK ๐
Functionsยง
- account ๐
- columns
- Opens each foreign account column the database holds.
- deactivation ๐
- deactivations ๐
- Streams every account the foreign deactivation column marks.
- findings ๐
- hash_
empty ๐ - Whether the accountโs stored password is empty, or
Nonewhen it has no row at all. - hash_
kept ๐ - Whether the account has a password row here that is not empty.
- passwordless ๐
- scan
- Streams each account whose password does not say what a foreign column records, only while the adoption is unstamped.
- subject ๐
- subjects ๐
- Streams what every row of the foreign subject column names.
- unmarked_
passwordless ๐ - Whether the accountโs password here is empty while no foreign column marks it deactivated.
- walk ๐