Skip to main content

load_security_config

Function load_security_config 

Source
pub async fn load_security_config(
    path: &Path,
) -> Result<SecurityConfig, AuthConfigError>
Expand description

Authentication and token configuration for embedded servers. Loads token and rate-limit configuration from a TOML file.

Schema paths in [[schema]] entries are resolved relative to the tokens config file’s parent directory, not relative to the current working directory. This prevents deployment breakage when systemd (or similar) starts the daemon from /.