Skip to main content

auth_check

Function auth_check 

Source
pub async fn auth_check<Fetch, State>(
    rules: &RoomVersionRules,
    incoming_event: &PduEvent,
    fetch_event: Fetch,
    fetch_state: State,
) -> Result<AuthCheckOutcome>
where Fetch: FetchEvent, State: FetchState,
Expand description

Checks an event against its state-independent and state-dependent rules.

A completed check returns an explicit allowance or denial. Failures to obtain or evaluate the required authorization inputs remain errors.