Skip to main content

Module authentication

Module authentication 

Source
Expand description

Configures account authentication and session lifetimes.

Login, OIDC, password hashing, and refresh-token policy have dedicated settings. The integration secret authenticates MAS provisioning calls; the emergency password grants access to the server bot account.

Re-exportsยง

use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use tuwunel_macros::config_example_generator; ๐Ÿ”’
use super::true_fn; ๐Ÿ”’

Structsยง

Argon2
Password hashing cost
Authentication
Authentication and sessions
Login
Login methods
Oidc
Built-in OIDC server (next-generation login)
RefreshToken
Refresh-token expiry and reuse

Constantsยง

TUWUNEL_CONFIG_SECTION_ARGON2 ๐Ÿ”’
TUWUNEL_CONFIG_SECTION_AUTHENTICATION ๐Ÿ”’
TUWUNEL_CONFIG_SECTION_LOGIN ๐Ÿ”’
TUWUNEL_CONFIG_SECTION_OIDC ๐Ÿ”’
TUWUNEL_CONFIG_SECTION_REFRESHTOKEN ๐Ÿ”’

Functionsยง

default_access_token_ttl ๐Ÿ”’
default_browser_session_ttl ๐Ÿ”’
default_m_cost ๐Ÿ”’
default_openid_token_ttl ๐Ÿ”’
default_p_cost ๐Ÿ”’
default_reuse_grace ๐Ÿ”’
default_t_cost ๐Ÿ”’
default_token_ttl ๐Ÿ”’