Re-exportsยง
use axum::Json;๐use axum::extract::Form;๐use axum::extract::Request;๐use axum::extract::State;๐use axum::response::Html;๐use axum::response::IntoResponse;๐use axum::response::Redirect;๐use axum::response::Response;๐use http::StatusCode;๐use http::header::CACHE_CONTROL;๐use http::header::PRAGMA;๐use http::header::REFERRER_POLICY;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde_json::json;๐use tuwunel_core::Err;๐use tuwunel_core::Error;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_service::Services;๐use tuwunel_service::oauth::server::DEVICE_GRANT_INTERVAL_SECS;๐use tuwunel_service::oauth::server::DEVICE_GRANT_LIFETIME;๐use tuwunel_service::oauth::server::format_user_code;๐use tuwunel_service::users::LoginProviderId;๐use url::Url;๐use self::consent::consent_html;๐use self::entry::entry_html;๐use self::error::error_html;๐use self::result::result_html;๐use super::consume_login_token_with_provider;๐use super::oauth_error;๐use super::peek_login_token_with_provider;๐use super::require_account_usable;๐use super::sso_redirect_url;๐use super::url_encode;๐use crate::ClientIp;๐
Modulesยง
Structsยง
- Device
Auth ๐Request - Device
Callback ๐Params - Device
Verify ๐Params
Staticsยง
- DEVICE_
HEAD ๐
Functionsยง
- device_
authorization ๐ - device_
authorization_ ๐error - device_
authorization_ ๐route - RFC 8628 ยง3.1: the device authorization endpoint. Mints a
device_code/user_codepair and returns the verification URIs for the user. - device_
error_ ๐response - device_
html_ ๐response - device_
native_ ๐redirect - device_
redirect_ ๐response - device_
sso_ ๐redirect - get_
device_ ๐callback_ route - The authentication return target: renders consent for the authenticated user.
- get_
device_ ๐route - RFC 8628 ยง3.3: the
verification_uri. Shows a user-code entry form, or sends the user through native or SSO authentication before consent. - handle_
device_ ๐callback_ get - handle_
device_ ๐callback_ post - handle_
device_ ๐verify - post_
device_ ๐callback_ route