Skip to main content

Module server

Module server 

Source

Re-exportsยง

use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Formatter; ๐Ÿ”’
use std::fmt::Result as FmtResult; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use serde_json::Value as JsonValue; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::debug_warn; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::utils::MutexMap; ๐Ÿ”’
use tuwunel_core::warn; ๐Ÿ”’
use tuwunel_database::Map; ๐Ÿ”’
pub use self::auth::AUTH_REQUEST_LIFETIME;
pub use self::auth::AuthCodeSession;
pub use self::auth::AuthRequest;
pub use self::client::ClientRegistration;
pub use self::client::DcrRequest;
pub use self::device::ApprovedDeviceGrant;
pub use self::device::DEVICE_GRANT_INTERVAL_SECS;
pub use self::device::DEVICE_GRANT_LIFETIME;
pub use self::device::DeviceGrant;
pub use self::device::DeviceGrantPoll;
pub use self::device::DeviceGrantStatus;
pub use self::device::format_user_code;
pub use self::token::IdTokenClaims;
use self::jwk::init_jwk; ๐Ÿ”’
use self::signing_key::SigningKey; ๐Ÿ”’
use self::signing_key::init_signing_key; ๐Ÿ”’
use crate::services::OnceServices; ๐Ÿ”’

Modulesยง

auth ๐Ÿ”’
client ๐Ÿ”’
device ๐Ÿ”’
jwk ๐Ÿ”’
signing_key ๐Ÿ”’
token ๐Ÿ”’

Structsยง

AuthCode ๐Ÿ”’
Data ๐Ÿ”’
Server

Constantsยง

API_SCOPE_PREFIXES ๐Ÿ”’
MSC2967 API-scope prefixes, stable spelling first.
DEVICE_SCOPE_PREFIXES ๐Ÿ”’
MSC2967 device-scope prefixes, stable spelling first.

Functionsยง

is_scope_char ๐Ÿ”’
RFC 6749 appendix A NQCHAR: printable ASCII except space, double quote and backslash. MSC4108 clients use unpadded base64 device ids.
narrow_scope
Restricts a requested OAuth scope to supported tokens per RFC 6749 ยง3.3.