Skip to main content

soma_auth_config

Function soma_auth_config 

Source
pub fn soma_auth_config(auth: &AuthConfig) -> Result<AuthConfig, AuthError>
Expand description

Build Soma’s soma_auth::config::AuthConfig from the typed soma_config::AuthConfig — the only supported path for the OAuth runtime.

soma_config::Config::load is the single reader of SOMA_MCP_* process env; this function feeds soma_auth_config_builder a var list synthesized from those typed fields via soma_auth_env_vars, so soma-auth itself never touches process env in Soma’s OAuth path (the pattern cortex uses with lab-auth).