Skip to main contentModule uiaa
Source use std::borrow::Cow; π use ruma::CanonicalJsonValue; π use ruma::DeviceId; π use ruma::OwnedUserId; π use ruma::UserId; π use ruma::api::IncomingRequest; π use ruma::api::client::uiaa::AuthData; π use ruma::api::client::uiaa::AuthFlow; π use ruma::api::client::uiaa::AuthType; π use ruma::api::client::uiaa::UiaaInfo; π use serde_json::json; π use serde_json::value::to_raw_value; π use tuwunel_core::Err; π use tuwunel_core::Error; π use tuwunel_core::Result; π use tuwunel_core::err; π use tuwunel_core::is_equal_to; π use tuwunel_core::utils; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::utils::OptionExt; π use tuwunel_core::utils::future::OptionFutureExt; π use tuwunel_core::utils::future::TryExtExt; π use tuwunel_service::Services; π use tuwunel_service::uiaa::SESSION_ID_LENGTH; π use super::jwt::validate_user; π use crate::Ruma; π
- auth_uiaa
- Authenticates a user through the requestβs UIAA flow.
- select_idp π
- Choose the identity provider to bind to the UIAA sessionβs SSO stage.