Skip to main content

handle_confirm

Function handle_confirm 

Source
async fn handle_confirm(
    __arg0: State<AppState>,
    conn: Option<ConnectInfo<Conn>>,
    headers: HeaderMap,
    body: Bytes,
) -> Response
Expand description

POST /auth/confirm {code, accept}: the person’s answer for the session that code made. An accept is taken only from a process found outside every agent’s process tree; one from an agent’s tree, from a process that cannot be found, or through a proxy is not taken (the answer says what works). Every accept, taken or not, is recorded with how it arrived (super::confirm_peer).