Skip to main content

Module complete

Module complete 

Source

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 πŸ”’
CompleteParams πŸ”’

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 πŸ”’