Expand description
Soma’s product auth default mapping: the env prefix, session cookie name,
supported/default scopes, and resource path that turn soma-auth’s
generic, product-agnostic AuthConfigBuilder into Soma’s own OAuth
configuration (plan section 3.20).
Moved out of apps/soma/src/runtime.rs (formerly the private
soma_mcp_auth_config_builder helper) — this crate is its permanent home
per PR 11’s acceptance criterion that apps/soma constructs adapters but
contains none of their implementation logic.
Functions§
- soma_
auth_ config - Build Soma’s
soma_auth::config::AuthConfigfrom the typedsoma_config::AuthConfig— the only supported path for the OAuth runtime. - soma_
auth_ config_ builder - Soma’s default
soma_auth::config::AuthConfigBuilder:SOMA_MCPenv prefix,soma_mcp_sessioncookie, the three Soma scopes,soma:readas default scope,/mcpas the OAuth resource path, and dynamic client registration enabled. - soma_
auth_ env_ vars - Synthesize the
SOMA_MCP_*var listsoma_auth::AuthConfigBuilderexpects from typed config fields.