Skip to main content

Module server

Module server 

Source
Expand description

HTTP server application state and auth policy.

AppState is injected into every request handler via axum’s State extractor. AuthPolicy determines which auth middleware (if any) is mounted on the router.

Structs§

AppState
Shared transport state injected into every request handler.
ResponsePageStore
SomaRuntime
Shared application state injected into every request handler.

Enums§

AuthPolicy
Authentication policy attached to AppState.
AuthPolicyKind

Functions§

build_auth_layer
Build a [soma_auth::AuthLayer] from an AuthPolicy, or None when the trust boundary is outside the mounted HTTP auth layer.
empty_gateway_product_state
gateway_product_state_from_config
gateway_product_state_from_env
gateway_product_state_from_store
resolve_auth_policy_kind
trusted_gateway_from_env
Read SOMA_NOAUTH from the environment directly.

Type Aliases§

GatewayProductState