Skip to main content

Module event_auth

Module event_auth 

Source

Re-exportsยง

use futures::TryStreamExt; ๐Ÿ”’
use futures::future::join3; ๐Ÿ”’
use futures::future::try_join; ๐Ÿ”’
use ruma::EventId; ๐Ÿ”’
use ruma::Int; ๐Ÿ”’
use ruma::OwnedUserId; ๐Ÿ”’
use ruma::api::error::ErrorKind::InvalidParam; ๐Ÿ”’
use ruma::events::StateEventType; ๐Ÿ”’
use ruma::events::TimelineEventType; ๐Ÿ”’
use ruma::events::room::member::MembershipState; ๐Ÿ”’
use ruma::events::room::power_levels::UserPowerLevel; ๐Ÿ”’
use ruma::room_version_rules::AuthorizationRules; ๐Ÿ”’
use ruma::room_version_rules::RoomVersionRules; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::utils::stream::IterStream; ๐Ÿ”’
use tuwunel_core::utils::stream::TryReadyExt; ๐Ÿ”’
pub use self::auth_types::AuthTypes;
pub use self::auth_types::auth_types_for_event;
use self::room_member::check_room_member; ๐Ÿ”’
use super::FetchEvent; ๐Ÿ”’
use super::FetchState; ๐Ÿ”’
use super::TypeStateKey; ๐Ÿ”’
use super::events; ๐Ÿ”’
use super::events::RoomCreateEvent; ๐Ÿ”’
use super::events::RoomMemberEvent; ๐Ÿ”’
use super::events::RoomPowerLevelsEvent; ๐Ÿ”’
use super::events::power_levels; ๐Ÿ”’
use super::events::power_levels::RoomPowerLevelsEventOptionExt; ๐Ÿ”’
use super::events::power_levels::RoomPowerLevelsIntField; ๐Ÿ”’
use crate::Event; ๐Ÿ”’
use crate::PduEvent; ๐Ÿ”’

Modulesยง

auth_types ๐Ÿ”’
room_member ๐Ÿ”’

Enumsยง

AuthCheckOutcome
Describes a completed event authorization decision.

Functionsยง

auth_check
Checks an event against its state-independent and state-dependent rules.
auth_check_outcome ๐Ÿ”’
auth_input_error ๐Ÿ”’
check_power_level_maps ๐Ÿ”’
Check the power levels changes between the current and the new maps.
check_room_create ๐Ÿ”’
Check whether the given event passes the m.room.create authorization rules.
check_room_power_levels ๐Ÿ”’
Check whether the given event passes the m.room.power_levels authorization rules.
check_room_redaction ๐Ÿ”’
Check whether the given event passes the m.room.redaction authorization rules.
check_state_dependent_auth_rules ๐Ÿ”’
Check whether the incoming event passes the state-dependent authorization rules for the given room version rules.
check_state_independent_auth_rules ๐Ÿ”’
Check whether the incoming event passes the state-independent authorization rules for the given room version rules.
classify_auth_error ๐Ÿ”’