Re-exportsΒ§
use std::iter::once;πuse std::net::IpAddr;πuse axum::Form;πuse axum::extract::State;πuse axum::response::Response;πuse const_str::format as const_format;πuse http::StatusCode;πuse ruma::UserId;πuse serde::Deserialize;πuse serde::Deserialize;πuse tuwunel_api::router::ACCOUNT_HEAD;πuse tuwunel_core::Err;πuse tuwunel_core::Result;πuse tuwunel_core::err;πuse tuwunel_core::utils::html::escape as html_escape;πuse tuwunel_service::Services;πuse tuwunel_service::oauth::server::AuthRequest;πuse url::Url;πuse url::form_urlencoded::Serializer;πuse super::account::account_error_response;πuse super::account::account_html_response;πuse super::consume_login_token;πuse super::peek_login_token;πuse super::redirect_allowlisted;πuse super::require_account_usable;πuse crate::ClientIp;π
StructsΒ§
- Approval π
- Complete
Params π
StaticsΒ§
- DENIED_
HTML π - REFRESH_
HTML π
FunctionsΒ§
- accept_
code π - Mint the authorization code for an approved sign-in.
- approval_
waived π - Whether the authorization code goes out without asking the user first.
- approved π
- Whether the submitted form approved the sign-in.
- code_
redirect π - complete_
continue_ πhtml - complete_
refresh_ πhtml - complete_
route π - handle_
approval π - needs_
interstitial π - Whether returning the authorization code requires a user gesture.
- post_
complete_ πroute - The approval formβs target.
- refuse_
code π - Discard a refused authorization.
- release_
code π - Retire the pending authorization request, mint the code, and hand it to the clientβs redirect target.
- with_
fragment π - with_
query π